[TYPO3-english] with multiple parameters in typoscript for f:cObject viewhelper ?
bernd wilke
t3ng at bernd-wilke.net
Thu Jul 25 13:34:23 CEST 2013
Am 24.07.13 19:55, schrieb Dirk Wenzel:
> Am 08.07.13 15:15, schrieb bernd wilke:
>> is it possible to transfer multiple paramters from a fluid-template to
>> the typoscript?
> Did you try to pass an array?
>
> I guess it could be build with an alias viewhelper
> <f:alias map="{data: {test: 'testValue', link: 'linkValue'}}">
> <f:cObject typoscriptObjectPath='lib.test' data="{data}" />
> </f:alias>
you don't need the map (at least in 6.1, which I tested):
<f:cObject typoscriptObjectPath="lib.arraytest" data="{a:'abc',b:'xyz'}"
>inside text</f:cObject>
ib.arraytest = COA
lib.arraytest {
10 = TEXT
10.field = a
10.wrap = /|/
20 = TEXT
20.field = b
20.wrap = \|\
}
gives:
/abc/\xyz\
'inside text' is ignored!
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list