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

Template: How to find out the section: Forums, Resources, Members?

Discussion in 'XenForo Development Discussions' started by Marcus, Nov 21, 2013.

  1. Marcus

    Marcus Well-Known Member

    What is the easiest way to find out where the user is currently in the forum (Forums, Resources, Members) with a template edit?

    <xen:if is="{$inSection} = 'Forums'">...</xen:if>

    There is just {$contentTemplate} I could use, but one section consists of several contentTemplates.
  2. Jeremy

    Jeremy Well-Known Member

    What section consists of several content templates?
  3. Marcus

    Marcus Well-Known Member

    With sections I meant here "Forums" as an example, like in this screenshot: upload_2013-11-21_18-51-52.png
    From my understanding, there are multiple content templates for this one section "Forums". My question is, what is the best way to determine on which section the user is at the current page view.
  4. xf_phantom

    xf_phantom Well-Known Member

    This should be $majorSection
    Marcus likes this.

Share This Page