XF 2.1 how to use <xf:if x='y'> for pages that are not xf on the same site

entelechy

Active member
My forum has a subdirectory with a wordpress instance for an online store at /store, and i've got adsense running on the forum but it's trying to also run on the wordpress store which i don't want.

In the page-container template i'm using code similar to:

<xf:if is="$template !== 'conversation_add' AND
$template !== 'conversation_list'...>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async>
......
</script>
</xf:if>

..and i want to exclude all pages from the store within this block as i have done for various xf page types that don't need ads running on them.

my problem is that the easiest way to designate the store pages is through the url. adding something like <xf:if is="$url doesn't include '/store'> but i have no idea how to select params other that template names, or if that's even possible.

is there a param i can use relating to the url?
 
Back
Top Bottom