• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to add banner for each category

#1
I understand this is how you add a banner to your forums, but how do you add banners to your categories?

Admin CP -> Appearance -> Templates -> ad_below_top_breadcrumb

Code:
<div style="text-align: center;">
<xen:if is="{$forum.node_id} == 2">
<img src="path/to/image.gif" />
<xen:elseif is="{$forum.node_id} == 8" />
<img src="path/to/image.gif" />
</xen:if>
</div>
Can you not use this code for a category? I even changed the word Forum to Category and still.. no luck
 

Jake Bunce

XenForo moderator
Staff member
#2
Can you not use this code for a category? I even changed the word Forum to Category and still.. no luck
Category records are not available to the container like forum records are. However, you can check the immediate parent (one level up) of a forum with {$forum.parent_node_id}. That may work for your purposes.