[TYPO3-english] display random value from array in fluid template
Xavier Perseguers
xavier at typo3.org
Wed Jun 12 15:04:59 CEST 2013
Hi,
>> i think the best is to write an own ViewHelper for this.
>>
>> -easy and quick
>> - full control
>
> Hi,
>
> Thanks for your response.
> I still don't understand how to melt them together in my template.
>
> How do I display the value if I use a ViewHelper to generate a random
> number?
You should take as basis one of the "easy" VH from Fluid itself such as
\TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper which includes everything
you need (parameters and renderChildren().
HTH
--
Xavier Perseguers
Release Manager TYPO3 4.6
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-english
mailing list