XF 1.x Conditional in Top bar

abdfahim

Registered
Is it possible to use conditional in top bar content? I want to show a link in top bar only to the registered users.
 

Russ

Pixel Exit Staff
Depending on where you want it you may need to edit xb_top_bar template and add the conditional manually there.

If you're wanting it on the right side we have a helper template for that:

xb_top_bar_right

Just wrap your code in this:

Code:
<xen:if conditional><li class="mainTopLink">your content</li></xen:if>

It needs to the <li> to be displayed properly.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.