How to add banner for each category

strongarm_playa

Active member
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
 
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.
 
Top Bottom