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

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

Discussion in 'Closed Suggestions' started by Mike Creuzer, Dec 13, 2013.

  1. Mike Creuzer

    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!
  2. Tom Christian

    Tom Christian Active Member

Share This Page