XF 1.4 Conditional for Resource pages

popowich

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'">

Thanks!
 
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.
 
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', ......
 
Top Bottom