XF 1.2 link only on index page

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?
 
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>
 
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'">
 
Top Bottom