[TYPO3-mvc] How can I access arguments of childnodes from within my viewHelper

Nikolas Hagelstein lists at shr-now.de
Thu Feb 11 14:14:38 CET 2010


Hi,
> with this I can only assing additional variables that are available
> while evaluating the child nodes - that won't work here.
Well, as i already mentioned i did not try it myself. I was just reading
trough the source.

Anyway I don't understand why it shouldn't work this way:

SwichtViewhelper:
	Add the switch value to
$this->templateVariableContainer->add(whatever,...)

Case Viewhelper:
	Compare the $this->TemplateVariableContainer->get(whatever) with own
case if eq render childElements.

Btw: you might need a break viewhelper as well ;).

Cheers,
Nikolas



More information about the TYPO3-project-typo3v4mvc mailing list