Template API/Reference documentation

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
TommyG
Posts: 1
Joined: Wed Apr 16, 2008 7:20 pm

Template API/Reference documentation

Post by TommyG »

I'm trying to learn a bit more about how templates/styles/etc work, and how to customise them/create my own.
What I'm wondering about in connection with this, is if there's any kind of reference documentation to what tags/variables are available in the misc. smarty templates used to build a page. Or, is it simply a case of learn by example, and looking through existing templates to figure out how stuff works?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Template API/Reference documentation

Post by yellowled »

TommyG wrote:Or, is it simply a case of learn by example, and looking through existing templates to figure out how stuff works?
Other than the documentation on s9y.org, yes, that's the way it is, at least until Garvin's book is finally released, which will only be helpful if you can read German.

In terms of CSS, there is a documented style.css which covers a lot, but not everything. For the .tpl files, it is always a good idea to start with /templates/default/, since it is the fallback template and therefore covers the most essential things. Also, Carl Galloway's Hemingway port is in my humble opinion a great source for inspiration, especially on more sophisticated template techniques.

If you have any budding questions, feel free to ask away here :)

YL
Post Reply