Announcement

Collapse
No announcement yet.

How do I show specific level 2 sections lists

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

    #16
    My first attempt would be:

    Code:
    <ul id="NavigationMenu">
    <actinic:block type="TopLevelSectionList">
    <li><a href="#"><actinic:variable name='SectionName'/></a>
    <actinic:block type="ChildSectionList">
    <ul><li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li></ul>
    </actinic:block>
    </li>
    </actinic:block>
    </ul>

    Comment


      #17
      Nearly! Ahh this so fustrating

      Your way produces the correct drop down action for just one selection of each header cell.

      As you can see in the image, take the 'Insulin Resistance' bit you can see that 'Plan B and C' are still visable but the 'Plan A' is hidden correctly and expands when the 'Insulin Resitance' tab is clicked. As do the other further down the nav.


      Comment


        #18
        All i'm helping with is getting a correctly formed html list, the interaction and styling is down to you and the menu you are using. Sounds like you have a collapso, why not just buy it from drillpine.biz at £35, have it installed in 5 minutes tops and save yourself the hassle?

        You have no styling on your sub menu, i don't see how it can hide unless it is told to do so.

        Comment


          #19
          Its the 2nd lot of <ul> tags I dont want them repeated/

          It should be

          Code:
          <ul id navigation>
            <li>Header Name
              <ul>
                <li>Sub Link 1</li>
                <li>Sub Link 2</li>
                <li>Sub Link 3</li>
              </ul>
            </li>
          <ul>
          Instead what is happening

          Code:
          <ul id navigation>
            <li>Header Name
                <ul><li>Sub Link 1</li></ul>
                <ul><li>Sub Link 2</li></ul>
                <ul><li>Sub Link 3</li></ul>
            </li>
          <ul>
          The second lot of <ul> should only be used once, not every time as what is happening within the actinic block, if you see what i mean
          Last edited by jozza800; 08-Mar-2010, 03:00 PM. Reason: Info added

          Comment


            #20
            Try:

            Code:
            <ul id="NavigationMenu">
            <actinic:block type="TopLevelSectionList">
            <li><a href="#"><actinic:variable name='SectionName'/></a>
            <ul>
            <actinic:block type="ChildSectionList">
            <li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li>
            </actinic:block>
            </ul>
            </li>
            </actinic:block>
            </ul>

            Comment


              #21
              Thanks everyone for your help and patience, I have figured it out.

              For anyone who wants to know the follwing gives me exactly what I was after..

              Code:
               
              <ul id="navigation">
              <actinic:block type="TopLevelSectionList">
              <li><a href="#"><actinic:variable name='SectionName'/></a>
              	<ul><actinic:block type="ChildSectionList">
              		<li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li>
              	</actinic:block></ul></li>
              </actinic:block>
              </ul>

              Comment


                #22
                Cheers Lee, I figured it out about 5 secs before I read your post.

                Thanks

                Comment


                  #23
                  A minor point. The code in #21 will produce an orphaned <ul></ul> if there are top level sections with no sub-sections.

                  Not a problem if all your top-levels always contain sub-sections but might trip up others who use it later.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment

                  Working...
                  X