I am trying to restrict ads from showing on certain pages and in certain nodes.
So I have this to not display on the main forum index and it works:
Now I tried to restrict display from certain nodes in an array but this does not work:
What am I doing wrong with that array?
Also, eventually I want to combine the two, possibly with templates in an array as well. Any help with how to do that?
So I have this to not display on the main forum index and it works:
<xf:if is="$xf.reply.template !== 'forum_list'">
followed by the ad code and the closing </xf:if>
.Now I tried to restrict display from certain nodes in an array but this does not work:
<xf:if is = "!in_array($forum.node_id, [302,293,291,294,323,298,301,290,296,288,320,319,321,318])">
What am I doing wrong with that array?
Also, eventually I want to combine the two, possibly with templates in an array as well. Any help with how to do that?