Compatible XF Versions:
This functionality allows you to add a sidebar to a template, page, etc. without the visitor panel at the top.
So for example, this is how a standard sidebar is added to a page:
And this is the result:
Using the new variable though we can add this:
Which gives you this:
- 1.0
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
This functionality allows you to add a sidebar to a template, page, etc. without the visitor panel at the top.
So for example, this is how a standard sidebar is added to a page:
Code:
<xen:sidebar>
<div class="messageText ugc baseHtml">
This is a sidebar with the visitor panel
</div>
</xen:sidebar>
And this is the result:
Using the new variable though we can add this:
Code:
<xen:sidebar>
<div class="messageText ugc baseHtml">
<xen:container var="$noVisitorPanel">1</xen:container>
<xen:if is="!{$noVisitorPanel}">
This is a sidebar without the visitor panel
</xen:if>
</div>
</xen:sidebar>
Which gives you this: