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

XF 1.2 link only on index page

Discussion in 'XenForo Questions and Support' started by Hristo Avramov, Aug 26, 2013.

  1. Hristo Avramov

    Hristo Avramov Active Member

    I want to put simple link on index page only. I remember in phpbb3 I could use
    <!-- IF SCRIPT_NAME eq index --> link.com <!-- ENDIF -->
    But I tried in xenforo and doesnt work. Anyone know how to do it correctly?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Hristo Avramov likes this.
  3. Hristo Avramov

    Hristo Avramov Active Member

    Thank you, but I dont understand.
    If I want the content to show on home page only how do I achive it.
    What should I insert on "$contentTemplate"

    <xen:if is="{$contentTemplate} == 'xyz'">
    This content will show on the xyz template
    </xen:if>
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The template name.
    The FAQ in my signature explains how to find that, but I also mentioned it in my previous post: forum_list.
    <xen:if is="{$contentTemplate} == 'forum_list'">
     

Share This Page