• 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

#1
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?
 
#3
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>
 

Brogan

XenForo moderator
Staff member
#4
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'">