[TYPO3-mvc] TypoScriptViewHelper
Sebastian Fischer
sebastian.fischer at e-netconsulting.de
Wed Apr 29 09:04:41 CEST 2009
Bastian Waidelich schrieb:
> $cObj->start($additionalData);
> $cObj->setCurrentVal($value);
> ...
> return $cObj->cObjGetSingle(...);
>
> That means you would be able to use it like
>
> lib.my.header = COA
> lib.my.header {
> 10 = TEXT
> 10.current = 1
> 20 = TEXT
> 20.field = foo
> }
>
> <f:typoScript typoscriptObjectPath="lib.my.header" value="Hello"
> additionalData="{foo: ' World'}" />
>
> and like this:
>
> <f:typoScript>{typoscriptSetup}</f:typoScript>
>
> BTW, I'd rather rename this view helper to <f:cObject> or
> <f:contentCobject>... What do you think?
>
> all the best
> Bastian
Hi Bastian,
as it reflects the cObj, i think, it would be a good choice to rename it
into f:cObject. contentObject would be another solution, but as long as
we use cObj in typoscript it would be miss leeding.
So i would stick with cObject.
Greetings
Sebastian
PS: i like the hole idea with additionalData. Great work.
More information about the TYPO3-project-typo3v4mvc
mailing list