When working with smarty templates in your modules , it's useful to know what variables are available and their values. Fortunately, this is now possible.
Create a user define tag called get_template_vars, here's the code for it:
Code: Select all
// get a list of all of the smarty assigned variables
// user defined tag named "get_template_vars"
global $gCms;
$tpl_vars = $gCms->smarty->get_template_vars();
print_r( $tpl_vars );
Then place {get_template_vars} at the bottom of the template you're working on, you'll get a list of all of the variables smarty knows about, and their values, and you can customize the template to your hearts content.
Hope this helps everybody.