Page 1 of 1

Template API/Reference documentation

Posted: Wed Apr 16, 2008 7:45 pm
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?

Re: Template API/Reference documentation

Posted: Thu Apr 17, 2008 12:27 am
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