Phases
Active member
I'm trying to do something like this:
or
or something similar I've tried a few things. Is there a way to do this? Looking for basically any forum name with the word root in it to be returned true. Appreciate any help!
Edit: Answer posted below:
Code:
<xen:if is="{$forum.title} LIKE 'root'">
or
Code:
<xen:if is="{$forum.title} == '%root%'">
or something similar I've tried a few things. Is there a way to do this? Looking for basically any forum name with the word root in it to be returned true. Appreciate any help!
Edit: Answer posted below:
Should work.Code:<xen:if is="strpos({$forum.title}, 'root') !== false">
stripos is the case insensitive version just FYI
Last edited: