Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > path to show all siblings of a specific node, and sibling of specific node? View modes: 
User avatar
Member
Member
henry - 7/8/2009 5:21:07 PM
   
path to show all siblings of a specific node, and sibling of specific node?
Hi guys, just been stuck in thinking about how to set the path on a CMSListMenu to achieve what I need, and i think its best described by example:

so the document tree structure looks something like this:



Vacancies
|___Specialists
| |__Baker
| |__Butcher
|___General



And in the submenu, what I am trying to achieve is:

1) When I select Vacancies, the menu should show Specialists and General
2) When I select Specialists, the menu should show Specialists, Baker, Butcher and General
3) When I select General, the menu should show Specialists and General

So basically all children of Vacancies should show all the immediate children of Vacancies in the menu, and also the direct children of the currently selected page.

Is this possible? So far I've only managed to get it working either /{0}/%, which shows all children of Vacancies regardless of whether they are selected or not, or ./%, which doesn't show Vacancies children when you have Baker selected.

Thanks!

User avatar
Member
Member
r.schwarz - 7/23/2009 6:27:38 AM
   
RE:path to show all siblings of a specific node, and sibling of specific node?
Had the same question right now. The support team helped me out.
Simply set the maximum nesting level to 1, and only direct children of the current page / node will be shown.

Stefan

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 7/24/2009 7:45:14 PM
   
RE:path to show all siblings of a specific node, and sibling of specific node?
Hi guys,
Thanks Stefan for the addition.

The Maximum Nesting Level setting should help here.
In some cases you could also use this kinda tricky path expression "/somepath%" which returns specific parent node as well as it's child nodes.

Regards,
Zdenek C.