[TYPO3-mvc] create array as viewhelper argument

Thomas Mammitzsch thomas at visualworx.de
Mon Feb 28 20:21:47 CET 2011


Am 28.02.2011 15:53, schrieb Thomas Allmer:
> On 28.02.2011 15:08, Thomas Mammitzsch wrote:
>> i wonder if it is possible to build an argument array for a fluid
>> viewhelper like link.action. Thats what i tried, but it didn't work:
>>
>> <f:link.action action="myaction" controller="mycontroller"
>> arguments="{mykey : myvalue}">my link</f:link.action>
>
> why are you trying to do?
because i need to link to a certain action in a certain controller for 
an entity i don't know which it is in that moment.
>
> you probably only forgot the "'" around myvalue? means
> arguments="{mykey : 'myvalue'}
no. mykey and myvalue are variables containing a string. Not Strings 
itself. I forgot to mention that.

regards, Thomas



More information about the TYPO3-project-typo3v4mvc mailing list