Hi,
I am in the process of setting up a store. Currently I have have 9 Sections, all of which have from 4 to 7 Sub-Sections. All the Sub-Sections are currently empty, but intend to add more Sub-Sections and Products.
I am trying to create a HTML Unordered List to show only the top 2 section levels. I have looked at the information on this page and made some changes to fit my needs. This is what I have generated.
With the intention to generate;
This was working perfectly when I had fewer Sections and Sub-Sections. But as I increased the complexity, moved items around and deleted items Actinic now just does not want to play ball.
The following line always returns true.
While these 2 statements always return false.
Please help me on this one, I am pulling my hair out over it! Thanks for your time.
Stewart
I am in the process of setting up a store. Currently I have have 9 Sections, all of which have from 4 to 7 Sub-Sections. All the Sub-Sections are currently empty, but intend to add more Sub-Sections and Products.
I am trying to create a HTML Unordered List to show only the top 2 section levels. I have looked at the information on this page and made some changes to fit my needs. This is what I have generated.
Code:
<ul id="navMenu"> <actinic:block type="EntireSectionList" > <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%201"><li class="topItem"><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%202" > <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%3d%3d%20%22%22%29" ><ul class="subMenu"><li class="subItem"><a href="<actinic:variable name="SectionPageName"/>" class="top"><actinic:variable name='SectionName'/></a></li></actinic:block> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%21%3d%20%22%22%29%20%26%26%20%28%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e%20%21%3d%20%22%22%29" ><li class="subItem"><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li></actinic:block> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e%20%3d%3d%20%22%22%29" ><li class="subItem"><a href="<actinic:variable name="SectionPageName"/>" class="foot"><actinic:variable name='SectionName'/></a></li></ul></li></actinic:block> </actinic:block> </actinic:block> </ul>
Code:
<ul id="navMenu"> <li class="topItem"><a href="#">Section 1</a> <ul class="subMenu"> <li class="subItem"><a href="#" class="top">Sub Section 1 a</a></li> <li class="subItem"><a href="#">Sub Section 1 b</a></li> <li class="subItem"><a href="#">Sub Section 1 c</a></li> <li class="subItem"><a href="#" class="foot">Sub Section 1 d</a></li> </ul> </li> <li class="topItem"><a href="#">Section 2</a> <ul class="subMenu"> <li class="subItem"><a href="#" class="top">Sub Section 2 a</a></li> <li class="subItem"><a href="#">Sub Section 2 b</a></li> <li class="subItem"><a href="#">Sub Section 2 c</a></li> <li class="subItem"><a href="#" class="foot">Sub Section 2 d</a></li> </ul> </li> </ul>
The following line always returns true.
Code:
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%3d%3d%20%22%22%29" ><ul class="subMenu"><li class="subItem"><a href="<actinic:variable name="SectionPageName"/>" class="top"><actinic:variable name='SectionName'/></a></li></actinic:block>
Code:
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%21%3d%20%22%22%29%20%26%26%20%28%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e%20%21%3d%20%22%22%29" ><li class="subItem"><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li></actinic:block> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e%20%3d%3d%20%22%22%29" ><li class="subItem"><a href="<actinic:variable name="SectionPageName"/>" class="foot"><actinic:variable name='SectionName'/></a></li></ul></li></actinic:block>
Stewart
Comment