[TYPO3-mvc] <f:cObject> overwrite settings from lib?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Mar 24 17:16:57 CET 2010
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.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list