getting hierarchy_path

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
steph_30
Forum Members
Forum Members
Posts: 22
Joined: Mon Apr 28, 2008 11:38 pm
Location: France

getting hierarchy_path

Post 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
Peciura

Re: getting hierarchy_path

Post 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}
Post Reply

Return to “CMSMS Core”