Accordion V1 - Omitting some Sections from the menu.
Posted: Thu Mar 04, 2010 2:14 pm
This post is for Accordion Menu V1.
It is possible to omit some Sections from display.
TOP LEVEL SECTIONS:
Go to Design / Library / Layouts / Accordion Menu / Glossy Accordion Menu.
Near the bottom are two lines (one very long).
Put a Condition around these lines that displays everything except what you want hidden. E.g.
The above Condition looks like: SectionName != "Books" i.e. display everything except books.
SECOND LEVEL SECTIONS:
Go to Design / Library / Layouts / AccordionSub Section Lists / Accordion Sub Sections.
Put the Condition around everything that's there (there's only 1 line). E.g:
The above Condition looks like: SectionName != "Modern" i.e. display everything except Modern.
A tutorial on Conditions can be found in Actinic's Advanced Guide under "Hiding Things With Conditions".
You can even use PHP in the Condition. E.g.
Will hide any Sections with the word "mail" in their name (and ignoring case).
It is possible to omit some Sections from display.
TOP LEVEL SECTIONS:
Go to Design / Library / Layouts / Accordion Menu / Glossy Accordion Menu.
Near the bottom are two lines (one very long).
Code: Select all
<a name="acctop" sid="<actinic:variable name="SectionID" />" class="menuitem<actinic:block type="ChildSectionList"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" > submenuheader</actinic:block></actinic:block>" 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>" target="_self"><actinic:variable name='SectionName'/></a>
<actinic:variable name="AccordionSubSections" />
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%21%3d%20%22Books%22" >
<a name="acctop" sid="<actinic:variable name="SectionID" />" class="menuitem<actinic:block type="ChildSectionList"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" > submenuheader</actinic:block></actinic:block>" 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>" target="_self"><actinic:variable name='SectionName'/></a>
<actinic:variable name="AccordionSubSections" />
</actinic:block>
SECOND LEVEL SECTIONS:
Go to Design / Library / Layouts / AccordionSub Section Lists / Accordion Sub Sections.
Put the Condition around everything that's there (there's only 1 line). E.g:
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%21%3d%20%22Modern%22" >
<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>" target="_self"><actinic:variable name='SectionName'/></a></li>
</actinic:block>
A tutorial on Conditions can be found in Actinic's Advanced Guide under "Hiding Things With Conditions".
You can even use PHP in the Condition. E.g.
Code: Select all
<actinic:block if="%21%20stristr%28%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e,%20%27mail%27%29">
.
.
</actinic:block>