Menu Items - Publishing to Navigation or Hiding

Jonathan B asked on December 6, 2014 21:10

Understandably if you've got a hard coded menu item that links to a page within your CMS - attempting to "uncheck" SHOW IN NAVIGATION won't hide the menu for obvious reasons.

I do have a dynamic menu that I call within my Base.Master file using this method:

<cms:CMSListMenu ID="PrimaryNavMenu" runat="server" Visible="true" ItemIdPrefix="subnav-menu" MaxRelativeLevel="4" HighlightAllItemsInPath="True" CSSPrefix = "subnav-level1__;subnav-level2__;subnav-level3__;subnav-level4__" RenderCssClasses="True" DisplayHighlightedItemAsLink="True"

Anything displayed within that menu - can be SHOW or HIDDEN using the page properties SHOW IN NAVIGATION feature.

Recently I had a developer move a menu item that I had been displaying through the CMSListMenu to a static menu. It appears he did not build it out using HTML. Instead he simply added this:

<li class="global-utility-nav__list-item has-dropdown" id="infoMenuItem" runat="server"></li>

By doing so - it allowed my "Info" menu to be displayed with all of the sub-menu items just as it was when it appeared under the CMSListMenu. Now the only different is ALL of the pages are showing - and I've got some set to be hidden.

Does anyone know why it's ignoring the set properties in navigation? Am I missing a tag in this line:

<li class="global-utility-nav__list-item has-dropdown" id="infoMenuItem" runat="server"></li>

Recent Answers

Brenden Kehren answered on December 7, 2014 05:23

There's a good chance the control is erroring out. Did you check the event logs?

Based on what you copied and pasted, this is not valid CSSPrefix = " There should be no spaces.

0 votesVote for this answer Mark as a Correct answer

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