Portal Engine
Version 2.x > Portal Engine > Menu Question View modes: 
User avatar
Brian - 1/9/2007 5:00:32 PM
Menu Question
I am currently creating the major controls that will serve as the basic building blocks of our site.

One of those controls is a typical left hand side menu. I need some specific functionality from this menu though that I cannot seem to get.

Specifically, I want the menu to do the following:

1. Show the Kentico page tree structure (this is the easy part)
2. Show all the menu items expanded
3. The start node of the menu should be the page that is currently displayed
4. Show only 2 levels deep from the page currently displayed

Items 3 and 4 are the ones that seem difficult to me.

To further illustrate the point, if I have a site structure that looks like the following in Kentico:

Page 1
-----Page 1A
----------Page 1A1
---------------Page 1A1a
---------------Page 1A1b
----------Page 1A2
---------------Page 1A2a
Page 2

Then the menu should look the following when Page 1 is displayed:

Page 1A
-----Page 1A1
-----Page 1A2

The menu should look the following when Page 1A is displayed:

Page 1A1
-----Page 1A1a
-----Page 1A1b
Page 1A2
-----Page 1A2a

Hopefully that makes sense. Any help would be greatly appreciated.

User avatar
admin - 1/20/2007 6:03:52 PM
Re: Menu Question

I would suggest that you set the Path property of the menu control to ./% and set the Maximum nesting level property to 2.

Please let me know if this helps.

Best Regards,

User avatar
esteban@desici.com - 3/30/2011 10:27:39 PM
RE:Re: Menu Question

How can i put the Maximum Nesting level y a ASPX tag?

this is my code:

<cc1:CMSListMenu ID="MenuDerecho" runat="server" path="./%" MaximumNestingLevel="1" />

Best Regard

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 3/31/2011 1:44:00 AM
RE:Re: Menu Question

You can use the following property:


Best regards

Ondrej Vasil