[TYPO3-english] display random value from array in fluid template
Muriel le Pair
typo3 at strangefruit.nl
Wed Jun 12 12:39:09 CEST 2013
Hi,
How do I display just one random value from an array in a fluid template?
I tried playing around with cycle but I don't know how to make them random:
settings {
icons {
10 = icon1
20 = icon2
}
}
<f:for each="{settings.icons}" as="img" iteration="iterator">
<f:if condition="{iterator.cycle} < 1">
{img}
</f:if>
</f:for>
--
kind regards,
Muriel le Pair
More information about the TYPO3-english
mailing list