Creating multiple menu's

Lennard van Diggelen asked on September 5, 2016 15:17

Hi there!

I'm trying to create 5 menu's in our website with cross usage of the items through all the menus's (e.g. main menu, footer menu 1, footer menu 2 etc.). I have a couple questions on how to approach this the best way:

  • Can i create more than the 3 exisiting menu group items? And is it possible to assign one page to multiple menu group items.
  • I have this right now:

<cms:listmenu runat="server" ID="wM" Path="/%" ClassNames="CMS.MenuItem" MaxRelativeLevel="2" WhereCondition="MenuItemGroup <> 'Navigation' OR MenuItemGroup IS NULL" RenderCssClasses="True" ItemIdPrefix="tm" HideControlForZeroRows="False" ZeroRowsText="There are no menu pages." CacheDependencies="##DEFAULT##" />

Can is use this approach?

Hope to hear from you!

Lennard

Correct Answer

Jan Hermann answered on September 5, 2016 16:04

Yes, the menu item group is nothing else than simple page property, so you can change it from a dropdown list to checkboxes and extend it by any number of groups. This can be done directly for the page type (Page types -> Page (menu item) -> Fields)

0 votesVote for this answer Unmark Correct answer

Recent Answers


Lennard van Diggelen answered on September 5, 2016 16:52

Hi Jan,

Thanks for the great answer. Is there a proper way to use the WhereCondition to get all the pages with a selected Itemgroup. I can't seem to get it work with WhereCondition="MenuItemGroup = 'main'" when the page has multiple items selected

Thanks!

0 votesVote for this answer Mark as a Correct answer

Lennard van Diggelen answered on September 5, 2016 16:54

Never mind! It worked with WhereCondition="MenuItemGroup Like '%main%'"

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.