Hey all,
I know you can loop in XenForo, but what I can't seem to figure out is how best to go about it.
Say I have a style property @some_list and I want to give it a comma delimited value of 1,2,3,4
How can I loop through it?
Also, is there a way to do like in_array in XenForo? What I mean is, lets say those 1,2,3,4 are node IDs and in template node_category_level_1 for example, can I do like:
Thanks a lot!
Mike
I know you can loop in XenForo, but what I can't seem to figure out is how best to go about it.
Say I have a style property @some_list and I want to give it a comma delimited value of 1,2,3,4
How can I loop through it?
Also, is there a way to do like in_array in XenForo? What I mean is, lets say those 1,2,3,4 are node IDs and in template node_category_level_1 for example, can I do like:
Code:
<if is="in_array({$category.node_id}, @some_setting">some value</if>
Thanks a lot!
Mike