XF 1.1 How to detect if sidebar is present?


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


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

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


XenForo moderator
Staff member
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.
  • Like
Reactions: rdn


Well-known member
OK, So for now may I ask.
What is the complete list of page class with sidebar?