[TYPO3-mvc] <f:cObject> overwrite settings from lib?
ralph
77 at kubai.de
Thu Mar 25 16:30:29 CET 2010
thx for the help. i copied the viewhelper and modified to fit him.
easiest solution.. ;-)
On 24.03.2010 17:16, Franz Koch wrote:
> Hi,
>
>> hi list. i try to use the f:cobj viewhelper. is there any way i can
>> overwrite settings from my lib? i want to overwrite
>> lib.mylib.settings.id with something from the f:codbj data argument.
>> how can i do this ?
>>
>> <f:cObject typoscriptObjectPath="lib.mylib" data="xy">hi</f:cObject>
>
> it's not possible with the default f:cObject viewHelper in the way you
> try to do it. What you could do is to make "lib.mylib.settings.id" of
> type stdWrap and process it in your controller:
>
> Template:
> <f:cObject typoscriptObjectPath="lib.mylib">{id:'123'}</f:cObject>
>
> TS:
> lib.mylib {
> settings {
> id = 33
> id.override.field = id
> }
> }
>
> could work - but don't count on it.
>
More information about the TYPO3-project-typo3v4mvc
mailing list