Omit some top level Sections

Horizontal menu bar with dynamic multi column drop-down display.
Post Reply
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Omit some top level Sections

Post by norman »

To omit selected top-level Sections from the menu, do the following.

Go to Design / Library /Variables / Multi Column Menu. Right-click MenuMaxThirdLevelShowParent and choose Copy.

Open MenuMaxThirdLevelShowParent(Copy) and make the following changes:

Name: MenuShowSection
Description: Whether to include the Section or not
Prompt: MenuShowSection

OK out.

Go to Design / Library / Layouts / Multi Column Menu / Multi Column Menu.

Look for the block of lines (approx 27-31):

Code: Select all

			<li><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" 
					class="product_section<actinic:block php="true">if ($thistop == '<actinic:variable name="SectionID" encoding="perl" selectable="false" />') echo ' mcmparent';</actinic:block>"
					><Actinic:Variable Name="SectionName"/></a>
				<actinic:variable name="MultiColumnSubSections" value="Multi Column Sub Section List" />
Above this block of lines put:

Code: Select all

			<actinic:block if="%3cactinic%3avariable%20name%3d%22MenuShowSection%22%20%2f%3e" >
Below this block of lines put:

Code: Select all

OK out and that's it installed.

For Sections you want to omit from the top-level, go to Section Details / Layout / Multi Column Menu and set MenuShowSection to False.
Post Reply