• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Array info with helper - Basic template functions?

#1
Hi there,
I want to find out how many items are in an array in a template file, is there something like <xen:helper array_size $array> or something?
Because there will be more things I need, like multiplying a width with the array size or subtraction.
More commonly to avoid following questions: Is there a list of all accessable features you can use in a template file?

Thanks :)
 

Chris D

XenForo developer
Staff member
#2
There's a number of helpers all defined in library/XenForo/Template/Helper/Core.php that should help.

Specifically you want

{xen:count $array}

And also

{xen:calc 5 + 5}