Page 1 of 1

getting hierarchy_path

Posted: Sat Oct 31, 2009 5:00 pm
by steph_30
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

Re: getting hierarchy_path

Posted: Sat Oct 31, 2009 7:39 pm
by Peciura
First use {get_template_vars}

Create UDT "var_dump"

Code: Select all

/*$params['var']*/

if(!empty($params['var'])){
echo '<pre>';
var_dump($params['var']);
echo '</pre>';
}
return;
Use it in content or test template

Code: Select all

{var_dump var=$content_obj}