grantus
Active member
I've been searching but I don't see anything about strpos. What would be the equivalent in a template?
Basically, I want to do this:
because I just need to see if the URL contains certain words so I can do an if/else.
Basically, I want to do this:
Code:
<xf:if is="strpos({$xf.uri}, 'forums') !== false">
forums
<xf:else />
{$xf.uri}
</xf:if>
because I just need to see if the URL contains certain words so I can do an if/else.