XF 2.1 How can I get current page in template?

alexis78i

Member
Hello, I'm trying to change H1 in resource manager custom fields.
I know how to change title, I also find a place where I can change H1, but now I need a name for conditional operator for it.

Maybe someone know? Thanks.

HTML:
<xf:if is="$titleHtml !== null">
    {$titleHtml|raw}
<xf:else />
    <xf:if is="CURRENT_FIELD == 'tab_name'">   
        My special H1 for tab here
    <xf:else />
        {{ prefix('resource', $resource) }}{$resource.title}
    </xf:if>                   
</xf:if>
 
Well. Does anyone know how to get the value from $xf.request?

I need to check $xf.request.input for the presence of the field I need.

HTML:
<xf:if is="in_array({$xf.request}, ['video'])">
    ...
</xf:if>
 
Back
Top Bottom