Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 Forum
 
  Forum  DotNetNuke Modu...  janet.Menu  Limiting the display levels of menus
Previous Previous
 
Next Next
New Post 7/10/2006 7:09 AM
  measurelink
8 posts


Limiting the display levels of menus 

I have purchased the Janet Systems menu control.  I have a site with a complex three-level menu structure.  I want to display only the menu items (2 tiers below) in the side menu, which relate to the root menu item selected.  For example:

Home

Resources

   Child 1 of Resources

   Child 2 of Resources   

Other Stuff

      Child 1 of Other Stuff

         Child 1.1 of Other Stuff

When Resources is selected, I would like to display:

Resources

   Child 1 of Resources

   Child 2 of Resources  

I've tried messing with CSS to do this, but cannot seem to get it right.

Steve T.

 

 

 
New Post 7/11/2006 1:06 PM
  neil
109 posts
www.janetsystems.co.uk


Re: Limiting the display levels of menus 

Hello Steve,

I think that what you are describing needs to be done within the coding for the menu, rather than the CSS.

Take a look at this website www.commerceplanner.com. Here the top level menu items are always shown (Option on whether to show home page). All child pages having the same parent as the page selected are also shown. The menu tag details for the above website are:

<janet:Menu id="Menu" runat="server" Indent="  " Style="parent"></janet:Menu>

Neil

 
New Post 7/11/2006 2:06 PM
  measurelink
8 posts


Re: Limiting the display levels of menus 

Thanks Neil.  I'll give that a try.

 

Steve

 
New Post 11/14/2007 3:14 PM
  webmonkey
5 posts


Re: Limiting the display levels of menus 

This also precisely what I would like to do as well.

I do not want to see the irrelevant parent links. 

The style="parent" attribute in the Menu tag shows the immediate children the parent and unfortunately all the aunts and uncles.  I would like just the parent and children, not the aunts and uncles.

Is there any way to do this.

 

 

 

 
New Post 11/16/2007 4:37 PM
  jon
4 posts
www.janetsystems.co.uk


Re: Limiting the display levels of menus 

Hi to everyone in this thread, unfortunately Neil is away from the office until Tuesday - at which point I will get him to post a reply.

Regards

Jon

 
New Post 11/21/2007 11:59 AM
  neil
109 posts
www.janetsystems.co.uk


Re: Limiting the display levels of menus 

Hello,

There is a parameter MaxLevel which can be used to limit the number of child levels to be shown. An example of this would be:

<janet:menu id="Menu" MaxLevel="1" IconDot="menu_whitedot.gif" IconDotSel="menu_orangedot.gif" IconDown="menu_orangeArrowD.gif" IconDownSel="menu_orangeArrowD.gif" IconRight="menu_blueArrowR.gif" IconRightSel="menu_orangeArrowR.gif" runat="server" Style="parent" options="icons=true,ItemDivide=true" icons="false" indent="  " omithome="false">

When retrieving the pages/tabs from the database the following clause is used:

AND {databaseOwner}{objectQualifier}Tabs.level < @MaxLevel

The level retrieved is taken from the base level, not from the current page level.

Neil

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke Modu...  janet.Menu  Limiting the display levels of menus
  

Custom DotNetNuke skins
eCommerce
Dedicated servers from Janet Systems
Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Wednesday, August 20, 2008