Any way to get all available variables inside template?

CyberAP

Well-known member
I want to dump all available variables and it's contents. It is possible to do using only XenForo syntax?
 

xf_phantom

Well-known member
that's the code from the default template:
Code:
<xen:foreach loop="$__params" key="$key" value="$value">
        <tr class="dataRow">
            <td>${$key}</td>
            <td>{xen:helper type, $value}</td>
        </tr>
    </xen:foreach>
 

CyberAP

Well-known member
Worked like a charm! I tweaked it a bit also to show contents of each variable:

Code:
<xen:foreach loop="$__params" key="$key" value="$value">
<div style="padding: 10px 0;">
    <b>{$key}</b>
    {xen:helper dump, $value}
</div>
</xen:foreach>
 
Top