Design and CSS styles
Version 5.x > Design and CSS styles > Tree Menu Web Part - Making only siblings and siblings' descendants visible View modes: 
User avatar
Member
Member
Stratego - 5/5/2011 2:43:03 AM
   
Tree Menu Web Part - Making only siblings and siblings' descendants visible
Hi All

I am building a site that has only one menu item that has children and in the tree menu web part I want to only display the siblings and children of the current page.

I can't find any way in the web part configuration to do that.

Below is the full menu and I have struck out the items that I don't want displayed.

In this example I am on the page Contract Law which is a child of the top level page Our Areas of Expertise. Contract Law has two children - Commercial Contracts and Employment Contracts

I don't want to display the parent of the page Contract Law (Our Areas of Expertise) and I don't want to display the siblings of its parent (Home, Why King Legal etc).


Home
Why King Legal?
Our Areas of Expertise

......Commercial Law
......Contract Law
..........Commercial Contracts
..........Employment Contracts
......Conveyancing & Property
......Family Trusts
......Matrimonial Law
......Power of Attorney
News
Our People
Location
Contact Us


Thank you for looking at this posting

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 5/6/2011 6:50:26 AM
   
RE:Tree Menu Web Part - Making only siblings and siblings' descendants visible
Hi,

could you please try to set Path property to /{0}/% this way only 2nd, 3th,... level nodes would be displayed. In case of tree view in Properties of webrat is an option Hide root, so you can check it.

For more info please take a look here:
path expressions


Best regards,
Ivana Tomanickova

User avatar
Member
Member
Stratego - 5/6/2011 4:34:46 PM
   
RE:Tree Menu Web Part - Making only siblings and siblings' descendants visible
Thank you very much Ivana, using /{0}/% as the path worked perfectly and the menu now looks beautiful.

S