Not a bug Conditional not being evaluated in Advertising System

lantek

Active member
Affected version
2.0
If I add the following to page_container, it works as expected, displaying the output on the forum list.

<xf:if is="$template == 'forum_list'">
Display Ad
</xf:if>

However, if I add that same code to an Advertising unit, it does not render on any page, forum list or other.
 
As you currently have a ticket open, we'll continue troubleshooting there before confirming if this is a bug or not.
 
It's neither.

You're simply trying to access something that isn't available in that template. Though you've not exactly been clear on exactly which advertising position you want to use. The variables available in different positions will vary.

To save a duplication of effort, please continue with the ticket.
 
Top Bottom