XF 2.0 Does {$forum.node_id} actually work any more?

limboclub

Active member
Running a GAM ad with this targeting:

.setTargeting('forum', ['{$forum.node_id}'])

But I get no output in the rendered code:

.setTargeting('forum', [''])

This is in the _ads template, via the Advertising system.

So is {$forum.node_id} actually a valid variable?

I'm finding that excluding ads from certain forums is also not working.
 
Found it!


$__globals.forum.node_id works.

That was an interesting few hours...
 
Top Bottom