MRaburn
Active member
It appears the following code will not work inside of the HTML part of inserting an ad. I am trying to bypass some Forums I do not want the code in.
If I dump the code I get NULL. I have to assume maybe the forum node variable cannot be passed here or is there other code I could use?
With the ! (not) part in the code, the code inside the IF will ALWAYS display. If I remove the ! (not) then the code will not display period.
This code works in a template in the <HEAD> of the Page Container, just not inside an Ad.
Confused.
Thanks!
Mike
Code:
<xf:if is="!in_array({$forum.node_id}, [228, 305, 308, 309, 310, 316, 341, 317, 49, 62, 253, 232, 81, 45, 319, 265])">
If I dump the code I get NULL. I have to assume maybe the forum node variable cannot be passed here or is there other code I could use?
With the ! (not) part in the code, the code inside the IF will ALWAYS display. If I remove the ! (not) then the code will not display period.
This code works in a template in the <HEAD> of the Page Container, just not inside an Ad.
Confused.
Thanks!
Mike