TOP LEVEL:
You may have some top-level Sections that have too many sub-sections to comfortably display and want to omit them from expanding.
This requires us to put a Condition ! DontExpandInAccordion around 2 bits of code.
Go to Design / Library / Variables, right-click Accordion Menu and choose New Variable.
Create the variable as below: 1)Go to Design / Library / Layouts / Accordion Menu / Glossy Accordion Menu.
Look for a line starting <a sid=........
In that line there is a fragment of code:
Code: Select all
<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>
Code: Select all
<actinic:block if="%21%20%3cactinic%3avariable%20name%3d%22DontExpandInAccordion%22%20%2f%3e"><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></actinic:block>
Code: Select all
<actinic:variable name="AccordionSubSections" />
Code: Select all
<actinic:block if="%21%20%3cactinic%3avariable%20name%3d%22DontExpandInAccordion%22%20%2f%3e"><actinic:variable name="AccordionSubSections" /></actinic:block>
SECOND LEVEL:
To use this to prevent a Second level section from expanding, create the variable DontExpandInAccordion as per above.
Then we need to add the Condition code && (! DontExpandInAccordion) into two existing BlockIfs.
Edit layout Accordion Sub Sections and look for the line (near line 3):
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22AM%2dThirdLevelShow%22%20%2f%3e" >
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22AM%2dThirdLevelShow%22%20%2f%3e%20%26%26%20%28%21%20%3cactinic%3avariable%20name%3d%22DontExpandInAccordion%22%20%2f%3e%29" >
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22AM%2dThirdLevelShow%22%20%2f%3e" >
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22AM%2dThirdLevelShow%22%20%2f%3e%20%26%26%20%28%21%20%3cactinic%3avariable%20name%3d%22DontExpandInAccordion%22%20%2f%3e%29" >
N.B. Tweaks such as this are not supported.