[TYPO3-mvc] Is there a general viewhelper for 10.value={text} 10.typolink.parameter={destination}?

Andreas Kiessling kiessling at pluspol.info
Mon Aug 27 14:23:56 CEST 2012


Hi Martin,

> 
> 
> I've been reading that 10 times and couln't find the solution. How would
> I rewrite the above TypoScript in 
> 
>    <f:cObject typoscriptObjectPath="lib.doTheWork" data="{..?..}" />
> 
> notiation? I don't get it ...
> 

{..?..} is array data, that the TS has access to, like the result in a
renderObj

So in your case, this should work

<f:cObject typoscriptObjectPath="lib.doTheWork" data="{dest1: dest1,
more1: more1}" />

Now you should be able to access the values from TS like from a regular
cObject

10 = TEXT
10.field = more1
10.typolink.parameter.field = dest1


HTH,
Andreas


More information about the TYPO3-project-typo3v4mvc mailing list