XF 1.5 Conditional Statements with URL portions

NinaMcI

Active member
Hi,
I've been trying to hide the content of an ad_ template from a page node.
However the page node has a URL portion instead of a node ID.
How do I write conditional statements where there is no node ID?
Code:
<xen:if is="!{$page.node_id} == ???">
Thanks for your help :)
 
The node ID still exists in code, it just isn't exposed to the URL.

Which ad template are you adding that to?
The $page param may not be available there.
You can check using:
Code:
{xen:helper dump, $page}

If that returns NULL, it's not available.
 
Top Bottom