XF 1.1 How to detect if sidebar is present?

rdn

Well-known member
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
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.
 
Reactions: rdn

rdn

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