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

If template is forum_list

A

account8226

Guest
#1
Hello,

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

I tried that code to show a code on my forum list page, but nothing is showing up.

How can I do that ?

Regards.
 
A

account8226

Guest
#3
I added it in a custom template I made, it is doing something like :
forum_list include taigachat include my custom template ^^

So I guess it is why it's not working isn't it ?
 

Chris D

XenForo developer
Staff member
#4
That's probably why, yes.

I think $contentTemplate is only available to container templates, such as PAGE_CONTAINER.

Furthermore it probably won't pick up templates that are included by <xen:include template="" />

If you can't get it positioned right in the PAGE_CONTAINER template you might want to consider directly editing the forum_list template.