Hi all,
I was trying to make a UDT to recompose the textual hierarchy of one of my page.
I searched in the database and I saw that a page (in the content table) has this field called hierarchy_path.
And now, my question is : how can I retrieve this information in my template ?
Thanks for your answer
Stephane
getting hierarchy_path
Re: getting hierarchy_path
First use {get_template_vars}
Create UDT "var_dump"
Use it in content or test template
Create UDT "var_dump"
Code: Select all
/*$params['var']*/
if(!empty($params['var'])){
echo '<pre>';
var_dump($params['var']);
echo '</pre>';
}
return;
Code: Select all
{var_dump var=$content_obj}