Announcement

Collapse
No announcement yet.

How do I create a bulleted section list that includes sub-sections?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I create a bulleted section list that includes sub-sections?

    This code can be used on any page, and will give a list of the main sections, and any sub-sections will be listed in a bulleted list underneath the main section heading.

    HTML Code:
    <actinic:block type="EntireSectionList">
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%201" >
    
    <br /><strong><a href="<actinic:variable name="SectionPageName"/>" target="_self"><actinic:variable name='SectionName'/></a></strong>
    
    </actinic:block>
    
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%202%29%20AND%20%28%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201%29" >
    
    <ul>
    
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%202">
    
    <li><a href="<actinic:variable name="SectionPageName"/>" target="_self"><actinic:variable name='SectionName'/></a></li>
    
    </actinic:block>
    
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%202%29%20AND%20%28%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22ListCount%22%20%2f%3e%29" >
    
    </ul>
    
    </actinic:block>
    
    </actinic:block>
Working...
X