Re: XSLT for beginners using Flux CMS?
Alain Petignat <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Simon for getting a more competent answer, you'll propably have to wait until Chregu is back from holidays ;) Simon Rönnqvist wrote: > 1. What is the minimal requierements for XSLT-based themes for Flux > CMS? The ones that come with it are imho. very complex. It is actually not that complex. There is one template called master.xsl. It defines the "Master-Layout". So for stuff such as the header, the sidebars and in general stuff which is supposed to be shown on all pages, you can have a look there. The plugins, e.g. the blog or the gallery-Plugin can overwrite all elements defined in master.xsl. So, for example, you have a different "#left"-div in the blog, you can edit this in blog.xsl. > 2. In what ways are the TAL-themes not as good as the XSLT-ones (when > looking at the ones bundled with Flux CMS)? I have no clue about TAL-themes. As far as i got it, the integration is still in development. All i have about this is the Wiki-Docs (http://wiki.bitflux.org/Templates_XSLTAL) and some posts on http://blog.bitflux.ch. > I'm asking this since I'm considering learning XSLT while making a > theme for Flux CMS, but if it's too hard for me as a beginner I might > have to go with TAL instead. I just startet out with some modifications. It depends, what Layout you want to edit. I for example just played around with blog.xsl. Maybe you can get some idea by looking at my actual template for the blog: http://www.sequenz.ch/themes/sequenz/blog.xsl For example you can make small-templates for everything you like: <xsl:template name="geeks"> <!-- all that geeky stuff --> </xsl:template> And you call it, whereever you want it to be shown, with: <xsl:call-template name="geeks"/> If you want that geek-Part to be available anywhere within the cms, just define it in master.xsl, if its just something within the blog, define it in blog.xsl. I do also think that theme handling should become easier. But i am sure it will :) I hope that helped ;) Alain -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms