New features Please use http://kentico.uservoice.com as the primary place to submit your suggestions and allow others to vote for your ideas!
Version 5.x > New features > menu related issue View modes: 
User avatar
Member
Member
senthil-anubavam - 9/7/2010 1:26:41 AM
   
menu related issue
Hi,

I have the scenario that I have to spilt the submenu into two and put different places of the page.

For example :
1. I have the menu item called “Capital” on the main navigation.
2. My pages are in the two columns template.
3. The Menu item “Capital” has 9 sub menu items.
4. When I click the menu item “Capital” it should show the top 4 submenu items as tab menu in the main content area and other 5 submenu items as a tree menu in the right side content area.

I don’t have idea how to do it.

Could you please tell me how to do it?

thanks in advance,
Senthilnathan K

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/10/2010 2:46:47 AM
   
RE:menu related issue
Hi,

You can create two categories in Properties of document (tree and tab) and assign them subpages according to you requirements (first x to tab category, the rest to tree category).

Now insert tab menu webpart of main content and tree menu webpart to right side.
Set Path of tab menu content to /{0}/% and insert following query into WHERE condition in Properties of webpart:
DocumentId IN (SELECT DocumentId FROM CMS_DocumentCategory WHERE CategoryId = 6)
P.S. you can find CategoryID in CMS_Category table.

Similarly for tree menu webpart insert the same query (with different CategoryId) into WHERE condition.

Now subpages that belong to tree category will be displayed in tree menu subpages that belong to tab category will be displayed in tab menu.

If you do not want to work with categories, you can select TOP N items in tab menu (insert your query to where condition) and in tree menu you can use some inner select (select all document - select top n document).

To hide submenu in main menu you can set Maximum nesting level to 1 in Properties of main navigation webpart.

Best regards,
Ivana Tomanickova