1. 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?

Discussion in 'XenForo Questions and Support' started by RoldanLT, Jul 5, 2013.

  1. RoldanLT

    RoldanLT 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
     
  2. Brogan

    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.
     
    RoldanLT likes this.
  3. RoldanLT

    RoldanLT Well-Known Member

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

Share This Page