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

RM 1.0 Controller name and controller action for resource view

CyberAP

Well-known member
#1
I really need this for styling to disable search box on the resource page.

XenForo accepts this type of conditions:

<xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Thread' AND {$controllerAction} == 'index'"><!-- your stuff here --></xen:if>

I want to know what is the controller name and controller action of the resource view page.
Thanks.
 

cclaerhout

Well-known member
#2
I really need this for styling to disable search box on the resource page.

XenForo accepts this type of conditions:

<xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Thread' AND {$controllerAction} == 'index'"><!-- your stuff here --></xen:if>

I want to know what is the controller name and controller action of the resource view page.
Thanks.
Use this:
Code:
{xen:helper dump, $variable}
Examples:
Code:
{xen:helper dump, $controllerName}
Code:
{xen:helper dump, $controllerAction}
Code:
{xen:helper dump, $viewName}