Search found 2 matches

by pajo
Sat Mar 03, 2012 10:15 am
Forum: CMSMS Core
Topic: getting node with hierarchy in menu template
Replies: 2
Views: 970

Re: getting node with hierarchy in menu template

temporarily fixed the problem with UDT that eats node id's for params: global $gCms; $manager =& $gCms->GetHierarchyManager(); //$thisPage = $gCms->variables['page_name']; $current = &$manager->sureGetNodeById((int)$params['id']); $h = $current->getParent()->getContent(); echo($h->Name());
by pajo
Sat Mar 03, 2012 9:04 am
Forum: CMSMS Core
Topic: getting node with hierarchy in menu template
Replies: 2
Views: 970

getting node with hierarchy in menu template

Is there a method/function that i could use in a (menu) tamplate to get a node via hierarchy? for example i'm on page 1.2.3 and i want to get the (parent) node 1.2 my problem is that if i'm on a page i need to get the parent node's alias and i think the best way is through hierarchy. my menu hierarc...

Go to advanced search