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

Martin Kutschker masi-no at spam-typo3.org
Wed Feb 10 17:34:16 CET 2010


Franz Koch schrieb:
> Hi,
> 
>> I would traverse trough the switch child elements check if they are an
>> instance of tx_fluid_case and get their arguments via prepareArguments.
>>
>> This is how the if viewhelper handles then/else.
> 
> I based my viewHelper on the ifViewhelper, but the ifViewHelper is only
> checking the className of the childNode to determin if it's then or
> else. But that doesn't work here.
> 
> The problem is, that the childNodes are no viewHelpers themselfs, but
> instances of the Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode

I haven't dug so far into FLUID yet. Is the complete syntax tree built before the rendering takes place?

Masi


More information about the TYPO3-project-typo3v4mvc mailing list