Announcement

Collapse
No announcement yet.

Section List With Sub Sections In Bullets

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

    Section List With Sub Sections In Bullets

    Hi

    I have implemented section lists with subsection in bullets per the Advanced Guide. The code is as follows:

    <actinic:block type="EntireSectionList">

    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%201" >
    <br /><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 class="subsectionlist">
    </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>

    The second block if condition is
    (SectionLevel> == 2) AND (ListIndex == 1)

    and the last block if condition is
    (SectionLevel == 2) AND (ListIndex == ListCount)

    If I understand this correctly then this should place the <ul> and </ul> markup code at the beginning and end, respectively, of each SectionLevel2 list. However, when I look at the source code on the website the <ul> and </ul> markup do not appear.

    Any help would be appreciated.

    Bruce
    Bruce Wallace
    Picchu Maternity
    Designer Maternity Wear UK

    #2
    Stick some diagnostic code in so you can see what's happening. E.g. just after
    <actinic:block type="EntireSectionList">

    add
    Code:
    (<actinic:variable name="SectionName" /> : <actinic:variable name="SectionLevel" /> : <actinic:variable name="ListIndex" />)
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      I just did that and I see that ListIndex always increases. So that code won't work as written (the author had assumed that it would reset to 1 on sub-sections).
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X