Portal Engine
Version 2.x > Portal Engine > Menu Question View modes: 
User avatar
Member
Member
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
Guest
admin - 1/20/2007 6:03:52 PM
   
Re: Menu Question
Hello,

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
Member
Member
esteban@desici.com - 3/30/2011 10:27:39 PM
   
RE:Re: Menu Question
Hi,

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

this is my code:

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

Best Regard

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

You can use the following property:

MaxRelativeLevel="2"

Best regards

Ondrej Vasil