[TYPO3-mvc] access to ChildNodes arguments

Sebastian KurfŸürst sebastian at typo3.org
Wed Jul 29 23:30:38 CEST 2009


Hi Christian,


> <x:switch by="foobar">
>     <x:case label="foo">...</x:case>
>     <x:case label="bar">...</x:case>
>     <x:default>...</x:default>
> </x:switch>
This is already quite advanced to do stuff like that :-)


Do you really need a switch, or might it make more sense having a custom 
ViewHelper? How much code do you write between <x:case>...</x:case>?

Concerning the renderingContext: You need to implement the (not public 
API yet, you've been warned ;-) ) 
Tx_Fluid_Core_ViewHelper_Facets_ChildNodeAccessInterface
and in there, there's a method "setRenderingContext" which you'll need 
to fill in which is called by the framework, passing you the rendering 
context.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list