Help with begining template mods

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
MattLavery

Help with begining template mods

Post by MattLavery »

Greetings, all.

I am trying to add some HTML to the sidebar. I feel quite incompetant at the moment. While I've coded pages in raw HTML before and I've done event-oriented and object-oriented programming before, I can't find where to put my code.

Everything seems really segmented and disjointed to me. Can someone give me a few pointers on:
  • How to go about reading and decoding this code
  • Where to put my block of HTML code to put something in the right sidebar on both the default theme and "Idea"
Thank you for your help,
- Matt
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Help with begining template mods

Post by garvinhicking »

There are two ways to get it done:

1. The easy way.

Go to the plugin administration and add a "HTML Nugget" sidebar plugin. There you can put RAW HTML code.

2. The flexible way

Use our Smarty templating system. There you can edit the templates/*.tpl files of your template to place raw HTML and even Smarty code. Please look at www.s9y.org and look at the Style / Template documentation for more information on this.

Have fun,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mattlavery
Posts: 1
Joined: Tue Jul 05, 2005 2:50 am
Location: Oahu, Hawaii
Contact:

Thanks!!

Post by mattlavery »

I've been poking around the code and getting a better feel for it. It's a diferent paradigm than inline code or event-driven apps for MS Access, but I'm getting there. :-)

Thanks for the pointers, I see the usefullness of the "nugget" now!

- Matt Lavery
- Matt Lavery
Webmaster, host and namesake of MattLavery.com
Post Reply