Forum Index Conditional?


XenForo moderator
Staff member
How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'xyz'">
This content will show on the xyz template
How can I find out which template to edit?
Using your browser, view the page source and look for a line of code near the top of the page which begins
<div id="content" class="; the class is the name of the template. So for the main forum page, the line of code is:
<div id="content" class="forum_list">, which makes the template forum_list.


Active member
Thanks! Got that to work. Know anything about the profile fields?
<xen:if is="{$user.customFields.tweetboard} == 'yes'">

I have it set to no, but it still displays o_O

NVM figured it out:
<xen:if is="{$visitor.customFields.tweetboard} == 'yes'">