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

Any way to get all available variables inside template?

Discussion in 'XenForo Development Discussions' started by CyberAP, Jun 15, 2013.

  1. CyberAP

    CyberAP Well-Known Member

    I want to dump all available variables and it's contents. It is possible to do using only XenForo syntax?
  2. xf_phantom

    xf_phantom Well-Known Member

    that's the code from the default template:
    <xen:foreach loop="$__params" key="$key" value="$value">
            <tr class="dataRow">
                <td>{xen:helper type, $value}</td>
    Jake Bunce and CyberAP like this.
  3. CyberAP

    CyberAP Well-Known Member

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

    <xen:foreach loop="$__params" key="$key" value="$value">
    <div style="padding: 10px 0;">
        {xen:helper dump, $value}
    infis, Andrej and xf_phantom like this.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page