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:
<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!
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)
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
Never mind! It worked with WhereCondition="MenuItemGroup Like '%main%'"
Please, sign in to be able to submit a new answer.