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

How to detect if the Home Page is selected?

Discussion in 'XenForo Development Discussions' started by Mic, Mar 1, 2013.

  1. Mic

    Mic Member

    Hi,

    I am able to detect the Forums page with this:

    <xen:if is="{$tabs.forums.selected}">

    But, is it possible for the Home Page? I tried with <xen:if is="{$tabs.home.selected}"> but it is not working.
     
  2. RoldanLT

    RoldanLT Well-Known Member

    Forum Home?
    Or Home like you have XenPorta?
     
  3. RoldanLT

    RoldanLT Well-Known Member

    <xen:if is="{$contentTemplate} == 'forum_list'">
    This is Forum Home
    </xen:if>
     
    Marcus likes this.
  4. Mic

    Mic Member

    Sorry. I am using XenPorta. How can I detect the Home Page?
     
  5. RoldanLT

    RoldanLT Well-Known Member

    <xen:if is="{$contentTemplate} == 'EWRporta_Portal'">
    This is Xenporta Home
    </xen:if>
     
  6. Mic

    Mic Member

    A big thank you! :)
     

Share This Page