CyberAP Well-known member Jun 15, 2013 #1 I want to dump all available variables and it's contents. It is possible to do using only XenForo syntax?
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 Jun 15, 2013 #2 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>
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 Jun 15, 2013 #3 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>
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>
Jake Bunce Well-known member Jun 15, 2013 #4 Here is another way to go about it. http://xenforo.com/community/threads/1-0-0-b1-finding-variables-available-to-templates.6071/
Here is another way to go about it. http://xenforo.com/community/threads/1-0-0-b1-finding-variables-available-to-templates.6071/