[TYPO3-mvc] problem with <f:for reverse="1"> ?

bernd wilke t3ng at bernd-wilke.net
Wed Jun 26 12:57:53 CEST 2013


I modified the datemenu template of tx_news.
one try is to reverse the order of the month:

<f:for each="{months}" key="month" as="count" reverse="TRUE">

as soon as I do this, the months over 9 loose their translation as 
{month} looses the content.

debugging the months show empty values:

(_all)
    data => array(2 items)
       single => array(1 items)
          2013 => array(3 items)
             11 => '1' (1 chars)
             06 => '1' (1 chars)
             01 => '1' (1 chars)

(month)
'01' (2 chars)
(month)
'06' (2 chars)
(month)
0 (integer)


without reverse:
(month)
11 (integer)
(month)
'06' (2 chars)
(month)
'01' (2 chars)

what's going wrong?
and why is the reverse attribute not documented in the wiki [1]?


[1] http://wiki.typo3.org/Fluid#f:for

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-project-typo3v4mvc mailing list