Sep
11
2006

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)}

Written by Aaron Wormus in: General, ezpublish |

3 Comments »

  • allstate auto insurance

    This site is truly a great resource thanks for all your hard work

    Comment | 11/11/2007
  • kasino spiel im internet

    perfect site !!!!!!!! Perfect piece of work fellows !!!!!!!

    Comment | 6/4/2008
  • internet online gambling

    Hallo thank you for a lovely web site I enjoyed

    Comment | 11/9/2008

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes