EZPT: Displaying contents of template variables
To display the contents of a variable use the ‘attribute’ template operator. This works in a similar fashion to the {debug} operator in Smarty and will dump the contents of the variable to the page.
By default the ‘attribute’ operator will only display the names of the attributes of the array, but sending ’show’ as the first parameter will show the data as well. Sending an integer as the second parameter will display the specified number of child arrays.
example:
{def $my_node=fetch(content, node, hash(node_id, $module_result.path.1.node_id))}
{$my_node|attribute(show, 1)}
3 Comments »
RSS feed for comments on this post. TrackBack URL
This site is truly a great resource thanks for all your hard work
perfect site !!!!!!!! Perfect piece of work fellows !!!!!!!
Hallo thank you for a lovely web site I enjoyed