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

XF 1.1 How to detect if sidebar is present?

RoldanLT

Well-known member
#1
Is there any chance I can use xenforo conditionals for this?

Like:

<xen if="the current page has sidebar">
Display this content.
<else no sidebar on this page>
Display this Content.
</xen>

Example pages with sidebar are:
forum_list, help pages,resource_description
 

Brogan

XenForo moderator
Staff member
#2
I don't think there is a condition for that but you can use an if statement with an array of all of those templates.