[TYPO3-mvc] Viewhelper giving back objects

Franz Koch typo3.RemoveForMessage at elements-net.de
Sat Nov 20 12:58:21 CET 2010


Hey,

> I am trying to make a selection of objects using a viewhelper. I do this
> to get the right objects displayed based on some getVars.
>
> What is the way to have a viewhelper return the objects?

yepp - you have to assign them to the templateVariableContainer, then 
render the children and after that remove your object/variable again 
from the container. Just have a look at the for-viewHelper of Fluid how 
to do it.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list