[TYPO3-mvc] IMAGE cObject and right viewhelper interaction [confused!!!]

Franz Koch typo3.RemoveForMessage at elements-net.de
Sat Jun 12 11:47:21 CEST 2010


Hey there,

> I have written the viewhelper that takes image src and other parameters,
> and then renders an IMAGE cObject. However I have a conceptual problem
> how to connect it in a clean way with StoreReadResponse viewhelper.
> I need to have it to render the Article.image property before it gets to
> the StoreReadResponse viewhelper.
> Is there a way to modify other fluid variables from viewhelper?
> Is there a way to pass output of one viewhelper to another (to chain them)?
>
> Ofcourse I can do the TS processing in the $articel->getImage(), but,
> IMO, it's mixing of model and view, as the html rendering belongs to the
> view... Or am I wrong and it's okay to do it via the getter?
>
> Or am thinking totally in the wrong direction?
> So guys, please help me solve it and I shall commit it to my library
> extension.

although I don't understand your question as I don't know the 
StoreReadResponse viewHelper, you can "chain" viewHelpers using the 
shorthand syntax of FLUID. Example:

<f:yourViewHelper value="{f:anotherViewHelper(property:value, 
property2:value)}" />


-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list