Forums / Developer / Template Debug / Comment60328

Author Topic

Brandon Chambers

Wednesday 21 July 2010 10:30:29 am

Comment60328

If you're having trouble with an object or node you can examine the structure of the node or object by using template code:

{$node|attribute('show',1)}

or

{$node.data_map|attribute('show',1)}

The second parameter in the attribute operator will allow you to control the depth of the debug output. I have them set as a level of 1. You can try 2 or 3 (keep in mind the page will look huge and is less readable) but I suggest no more than 2 levels if necessary.

Brandon Chambers
brandon@granitehorizon.com
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com