[TYPO3-mvc] Determine f:layout dynamically

Markus Klein klein.t3 at mfc-linz.at
Thu Oct 10 13:37:32 CEST 2013


Hi!

Is it not possible to have the layout of a template defined dynamically?

<f:layout name="{f:if(condition: isSomething, then:'This', else:'That')}" />

This code gives Fatal in FE:
Fatal error: Call to a member function getViewHelper() on a non-object in /.../master/typo3temp/Cache/Code/fluid_template/Standalone_template_source_d2e755f13089ffbbf3d3e22e204bf68593c7d8fb.php on line 18

Line 18 uses $self which is not defined in function 'getLayoutName'.

Any idea how to solve that, or is this even a core bug?
Tested on current master.

Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member




More information about the TYPO3-project-typo3v4mvc mailing list