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?
Template API/Reference documentation
Re: Template API/Reference documentation
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.TommyG wrote:Or, is it simply a case of learn by example, and looking through existing templates to figure out how stuff works?
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