[TYPO3-english] how to: find the length of a typoscript defined array in fluid?

Calgacus map Brude calgach at gmail.com
Tue Dec 31 17:43:52 CET 2013


I define an array in my extensions setup.txt typoscript like so:

settings{
        halls {
            0 = Default
            1 = Mississauga   
            2 = Halifax
            3 = Niagara Falls 
            4 = Oakville 
            5 = Pickering 
        }}
how in my fluid template can I find the length of the halls array? I want an if condition to do one thing if length is greater than 1 and another if not.

I am using typo3 v4.5.32 with extbase 1.3.

Thank you.


More information about the TYPO3-english mailing list