[TYPO3-mvc] Different Layouts in Fluid

Bastian Waidelich bastian at typo3.org
Thu Jun 21 12:40:34 CEST 2012


Claus Due wrote:

> I forgot the link, but there is a detailed explanation in a
> wiki somewhere - possibly FLOW3 related.

Did you mean this one: 
http://forge.typo3.org/projects/typo3v4-mvc/wiki/FAQ#Can-ViewHelpers-be-nested 
?

> General tip though: if your conditions require this type of very complex nesting you are
> probably much better off performance- and logic-wise assigning the variable elsewhere  [...]

+1

As you already use a variable called "homepage" you could instead pass a 
variable "layout". In a little example project I set a variable 
depending on the backend layout used see [1].

Best


[1] 
https://github.com/bwaidelich/Extensions.my_website_com/blob/master/Configuration/TypoScript/page.setup.ts#L25


-- 
Bastian Waidelich
TYPO3 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list