ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,714
- Points
- 823
Reputation:
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:
Code:
because I just need to see if the URL contains certain words so I can do an if/else.
Continue reading...
Basically, I want to do this:
Code:
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.
Continue reading...