Skinning and designing Serendipity (CSS, HTML, Smarty)
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,
- Core Developer
- Posts: 30020
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
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.
- Posts: 1
- Joined: Tue Jul 05, 2005 2:50 am
- Location: Oahu, Hawaii
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