[TYPO3-english] How to choose frontend template based on be_layout for good performance
Jo Hasenau
info at cybercraft.de
Tue Nov 25 21:25:48 CET 2014
Am 25.11.2014 12:50, schrieb Urs Braem:
> Thanks Jigal,
>
> I had simplified the code, I also use marks in the page object.
> So the rendering definition for nr. 2 might look like this:
>
> page.20 < page.10 page.20 {
> stdWrap.if {
> value = 2
> }
> marks { MAINCONTENT < temp.teaser
> CONTENT_NAV >
> CONTENT_NAV =
> # ... and many more!
> }
> }
>
> How would that be put into a CASE object efficiently?
Just go for
page.10 = CASE
and then do
default = TEMPLATE
default {
...
}
1 = TEMPLATE
1 {
...
}
2 = TEMPLATE
2 {
...
}
or maybe copy 1 and 2 from default like
1 < .default
1 {
# just changes to default here
}
HTH
Joey
--
Diversity:
Die Kunst zusammen unabhängig zu denken
The art of thinking independently together.
--
Facebook: https://www.facebook.com/johasenau
Twitter: http://twitter.com/bunnyfield
Xing: http://contact.cybercraft.de
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-english
mailing list