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

XF 1.4 Conditional for Resource pages


Active member
What's the conditional for resource pages?

For example, I use this one related to the home page:

<xen:if is="{$contentTemplate} == 'forum_list'">



Active member
Also related to resources, is there a permission that turns off the behavior that cuts off resource page content for visitors?

I don't see anything in the group permissions.


XenForo moderator
Staff member
The FAQ in my signature explains how to identify the template name.

The content limit is set here:


Active member
I wonder if Brogan's mind is going "Yeah, can't stop posting questions from the FAQ! (but thanks for the posts)" <sarcasm>

xenforo can't stop.jpg


Active member
For anyone else who needs this, here is an answer:

<xen:if is="{$contentTemplate} == 'forum_list' OR {$contentTemplate} == 'resource_description'">

Maybe it was doable with an array too, like this syntax with the correct template names:

<xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', ......