Lack of interest Add explode() and in_array e.x. Style Property to Array

Mike Creuzer

Well-known member
Hey there,

Not sure if this has been suggested, but it would great if we could have access to str_split() or explode() in the templates as well as in_array().

This would allow people to loop through style property comma delimited values. A lot of people want to do side by side node designs but only for certain nodes. I could then allow people to have a comma delimited list of all the category IDs they want to apply this too and then in the node_level_X just add a class to the list item if <xen:if="in_array(@sideBySideCategories)"> returns true.

I'm sure this can be done easily with a plugin, but I'm just not knowledgeable in making plugins, and feel a bit overwhelmed when attempting anything.

Thanks for considering!