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

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Dad.

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!
 
Upvote 3
This suggestion has been closed. Votes are no longer accepted.
Top Bottom