[TYPO3-english] Different Fluid layouts for different pages. How to implement?

Andreas Kiessling andreas.kiessling at web.de
Wed Oct 31 02:47:43 CET 2012


Hi Michael,

the difference between layouts and templates is pretty simple: a layout
can be used by multiple templates and defines sections that are
implemented in the templates.

It is up to you, where to store them when using the standalone
FLUIDTEMPLATE. If you don't have any <f:layout name="xyz" /> declaration
in your template, your code should already work.

If a <f:layout name="xyz" /> tag is in the template file, Fluid looks up
the according file in the layoutRootPath and "merges" the sections (e.g.
<f:section name="content">my content</f:section> ) from the template
into the layout (<f:render section="content" />)

It makes much more sense when you have to deal with plugins/extensions
and need to have some sort of global wrappers for different controllers
and actions.

So long story short: your layouts are templates (from a technical point
of view) ;)

HTH,
Andreas


More information about the TYPO3-english mailing list