[TYPO3-mvc] Extend fluid helpers without extending them

Bastian Waidelich bastian at typo3.org
Mon Oct 4 14:03:11 CEST 2010


Christian Opitz wrote:

Hi Christian,

> Do you see a way to inject additional arguments and perhaps custom
> functions into existing view-helpers?

Did you know that all ViewHelpers extending AbstractTagBasedViewhelper 
have an argument "additionalAttributes" that you can use to specify your 
custom attributes like:

<f:form.textfield name="foo" additionalAttributes="{bar: 'baz', 
readonly: 'readonly'}" />

HTH
Bastian



More information about the TYPO3-project-typo3v4mvc mailing list