Technical support This forum is closed.
Version 1.x > Technical support > How can I create 2 menus on a page? View modes: 
User avatar
Member
Member
Antony - 12/6/2005 2:02:30 PM
   
How can I create 2 menus on a page?
Hello,

For example, I have following structure:

rootPage
- page1
- page2
- page3
- page4
- page5

Every level 2 page has its own subpages.
RootPage does not appear in menu. I need to create 2 menus on a single page.
The first menu contains pages 1 - 3, and the second one containes pages 4 and 5.
In that case, I have to use two CMSMenuControls.
The question is: What value should SelectNodesPath attribute be assigned for?

Thanks,
Antony

User avatar
Member
Member
Chameane - 12/6/2005 4:20:34 PM
   
Re: How can I create 2 menus on a page?
Hi,

You can add a new level like this:
rootPage
-Menu1
--Page1
--Page2
--Page3
-Menu2
--Page4
--Page5

and set Menu1 and Menu 2 as hidden in Site Map and Menus

With this trick your SelectNodesPath should be: /Menu1/% for the first menu and /Menu2/% for the second one

User avatar
Member
Member
Antony - 12/6/2005 4:57:52 PM
   
Re: How can I create 2 menus on a page?
Oh, I forgot to say about BreadCrumbs control.
It also should work properly. I mean, like this:
rootPage > Page1 > ....
rootPage > Page4 > ....

But if I add new level, the bread crumbs will show the following:

rootPage > Menu1 > Page1.

Sorry about this confusion and thank you for help.

User avatar
Member
Member
Antony - 12/6/2005 5:13:36 PM
   
Re: How can I create 2 menus on a page?
Also, having been added, new level pages will be available through http.
So, someone can type string 'http://MySite.com/rootPage/Menu1.aspx' in
browser and see a blank page. I think, this is not good.

User avatar
Member
Member
cpaul - 12/6/2005 6:21:12 PM
   
Re: How can I create 2 menus on a page?
Could you use the order attribute in your selectnodes where to restrict it to the given number of pages, and set the order of the pages appropriately?

User avatar
Guest
admin - 12/7/2005 8:02:38 AM
   
Re: How can I create 2 menus on a page?
Hi Antony,

the suggestion from Chip should probably help you. You could use the Order field and set the value to 1-9 for the first menu and 10-20 for the second menu. Then, you can set the SelectNodesWhere property of the menu control to "MenuItemOrder < 10" or to "MenuItemOrder >= 10".

Should you need any help with that, please let me know.

Best Regards,

User avatar
Member
Member
Antony - 12/7/2005 8:33:17 AM
   
Re: How can I create 2 menus on a page?
It works.
Thanks a lot!