Announcement

Collapse
No announcement yet.

Sub section list in product page

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

    Sub section list in product page

    Hi,

    Does anyone know how to list only the subsections of the main section you are in on the products page.

    I know there is the java code which can put the list of hyperlinks of all sections and subsection, but I only need the subsections of the section I am in. (If that makes any sense!)

    Heres the java code but can it be modified?

    <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    function SectionList(ar)
    {
    var strIDs = '<table border=0 width=95% cols=2>';
    for (var i=1;i<=ar.length;i++)
    {
    if (ar[i].sURL !=null)
    {
    strIDs += '<tr><td colspan=2><a href="' + ar[i].sURL + '"><span class="actxxsmall">' + ar[i].sName + '</span></a></td></tr>';
    {
    if (ar[i].pChild)
    {
    for (var j=1;j<=ar[i].pChild.length;j++)
    {
    if (j <= ar[i].pChild.length)
    {
    strIDs += '<tr><td><img src=shim.gif width=5></td><td><a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall">' + ar[i].pChild[j].sName + '</span></a></td></tr>';
    }
    }
    }
    }
    }
    }
    strIDs += '</table>'
    return strIDs
    }
    //-->
    </SCRIPT>


    Thanks to whoever undertsands!

    #2
    Peter

    The code for this is in the latest version of the Advanced User Guide.

    You can download it form the downloads section of www.actinic.co.uk
    Owner of a broken heart

    Comment


      #3
      Hi Gary,

      Have downloaded it, but it doesnt say how to do only sub-sections of the section to be browsed. It only has all sections and sub-sections.

      Cheers

      Comment


        #4
        Hi,

        Is there a piece of code instead of

        <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW -->

        or


        <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

        for

        Bottom level subsections?

        <!--@act NETQUOTEVAR:BOTTOMLEVELSECTIONS_RAW -->

        Cheers

        Comment


          #5
          In Act_Primary if you put NETQUOTEVAR:CHILDSECTIONS_RAW

          then this generates an array called "child_sections" which if passed to the SectionList function you mentioned above will generate that list just for the child sections.

          e.g.

          SectionList(child_sections)


          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Hi,

            Is there a way of controlling the layout of the java code so that its not just one long vertical list, but into several horizontal lists?

            Cheers for now!

            Comment


              #7
              By the way the site is called www.moviestarz.co.uk maybe you will see it better than me explaining!

              I'm just away to upload the new code...

              Comment


                #8
                You could try deleting every tag that begins with <t..> and </t..> in the SectionList function. This will (probably) lay everything out across the screen.

                Norman

                p.s. It's JavaScript not Java. Java is a completely different language.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment

                Working...
                X