Announcement

Collapse
No announcement yet.

bullet list with sub sections

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

    bullet list with sub sections

    Hello Everyone... my names sean and i am a recent addition to the this actinic forum. I would rate my experience of actinic as between an intemediate.

    My question is regarding integration of a css/java menu navigation.

    how do i modify the following code to allow users to view top level sections and sub sections?

    <actinic:variable name="JavaScriptArray" value="All Data From Top Level Sections" />

    <SCRIPT LANGUAGE = JavaScript>
    <!--
    function BulletList(pItem)
    {
    var strIDs = '<ul>';
    {
    for (var i = 1; i <= pItem.length; i++)
    {
    strIDs += '<li><a href=' + pItem[i].sURL + '>'+ pItem[i].sName + '</a></li>';
    }
    }
    strIDs += '</UL>'
    return strIDs
    }
    -->
    </SCRIPT>

    #2
    Have you had a look in the AUG or KB Sean, both will have the fully explained answer to this, as will the forum also i suspect. I've definitely seen this in the AUG, so make that your first port of call, a great addition to your arsenal.

    Comment


      #3
      What does AUG stand for? i guess that KB is knowledge base?

      Comment


        #4
        might this help?

        http://community.actinic.com/showthread.php?t=35767

        Comment


          #5
          Originally posted by etchin_uk View Post
          What does AUG stand for? i guess that KB is knowledge base?
          AUG = Advanced User Guide and is available to download from here: http://www.actinic.co.uk/support/downloads.htm
          Darren Guppy
          Golf Tee Warehouse
          Golf Tees and Golf Accessories.

          Comment


            #6
            It's best not to do this via JavaScript. The only JavaScript structures available are either the top-level section list (not enough for you) or the entire section tree structure (probably a huge file if you've decent size site).

            A better way is to use Actinic's built-in capabilities to do this. E.g. The following will display all top and second level section names.
            Code:
            <actinic:block type="TopLevelSectionList">
            	<br/>TOP: <actinic:variable name="SectionName">
            	<actinic:block type="ChildSectionList">
            		<br/>---SUB: <actinic:variable name="SectionName">
            	</actinic:block>
            </actinic:block>
            The Advanced Guide helps with this - see Advanced List Functionality there.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Here's similar to the above but with nested UL's.
              Code:
              <ul>
              	<actinic:block type="TopLevelSectionList">
              		<li>
              			<actinic:variable name="SectionName">
              			<ul>
              				<actinic:block type="ChildSectionList">
              					<li><actinic:variable name="SectionName"></li>
              				</actinic:block>
              			</ul>
              		</li>
              	</actinic:block>
              </ul>
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                i think this thread may have been moved becuase i dont remember posting in v8/v9 section.

                i am using business v7 so am i correct in saying that i am unable to use the actinic:block feature?

                by the looks of things i wont be able to implement a top section with child sections menu on my website with my limited skills so im probably going to just stick with the standard top sections bullet list.

                cheers for the help though guys

                Comment

                Working...
                X