Announcement

Collapse
No announcement yet.

Removing sub-section names from sections

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

    #16
    </table>
    </td>
    </tr>
    NETQUOTEDEL:CAPTURECOUPON
    <tr>
    <td valign="top" bgcolor="NETQUOTEVAR:PALCOLOR1CSS"><img src="departments.gif" width="170" height="27"></td>
    </tr>
    <tr>
    <td valign="top" bgcolor="NETQUOTEVAR:PALBGCSS">
    <table width="100%" border="0" cellpadding="1" cellspacing="5">
    <tr>
    <td>
    NETQUOTEVAR:TOPLEVELSECTIONSTOP
    <!-- <script language=Javascript1.2>
    document.write(YahooSections(section_tree))
    </script> --> <br>
    </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><img src="main_pages.gif" width="170" height="27"></td>
    </tr>
    <tr>


    Hope this helps John

    Richard

    Comment


      #17
      It looks ok on the face of it. What I would do is insert some plain text in the code like this -

      <td>
      x1<br>
      NETQUOTEVAR:TOPLEVELSECTIONSTOP
      <br>x2
      <!-- <script language=Javascript1.2>
      document.write(YahooSections(section_tree))
      </script> --> <br>
      </td>
      now view the page and see what happens. Do you see x1 and x2 on the page where you are expecting to see the list? (do this offline if it is a live site)
      John

      Comment


        #18
        Hi John

        Yes I see x1 and x2 where I would expect to see the Departments.

        Richard

        Comment


          #19
          ok, someone help me out here... not sure where TOPLEVELSECTIONSTOP is resolved...
          John

          Comment


            #20
            Richard

            What version of Actinic are you using? And are you looking at brochure pages or section pages?

            Also please make sure you have got 'Location and Arrangement of Top Level Section List' set to show the list at the 'top' of each page in 'Design | Options | Sections'.

            Comment


              #21
              Thanks Chris and John

              The 'Location and Arrangement of Top Level Section List' wasn't set to 'Top'. That has sorted it.

              Your help is very much appreciated.

              Richard

              Comment


                #22
                I've noticed that I'm not getting any section lists on the search/checkout pages - does this method not work for these pages (as per v6) or have I just screwed something up somewhere (I have been hacking the templates around quite a bit...)
                John

                Comment


                  #23
                  I agree it doesn't seem to work the same in the ActPrimaryCheckout.html page so I have left it as is there. Presumably this is ok as the search engines are only looking for links from the opening page? By changing to the NETQUOTEVAR:TOPLEVELSECTIONSTOP in ActPrimary.html page rather then the javascript, I have lost the bold to the section list. I have tried adding in bold tags, but this doesn't seem to work. Any ideas?

                  Whilst saying that I was going to use both options, one for the primary page and the other for the checkout page, but I have just realised that the layout is slightly different for the two options, what could be done about this?

                  Cheers
                  Richard
                  http://www.smarterproducts.co.uk

                  Comment


                    #24
                    I have tried adding in bold tags, but this doesn't seem to work. Any ideas?
                    Open Act_SectionLineSmallText.html and put the bold tags around NETQUOTEVAR:SECTIONNAME, you can also get to this template from Advanced | Template Manager | Section | Top Sections.

                    For the checkout pages you can use the javascript as detailed in the Advanced Users Guide or you can view the source code on a catalog page and copy the generated code into the appropriate area in Act_PrimaryCheckout.html, this method has a fallback because you will have to redo the paste everytime you add or remove a section.

                    Kind regards,
                    Bruce King
                    SellerDeck

                    Comment


                      #25
                      Originally posted by NormanRouxel View Post
                      Basically you want to remove the YahooSections list and replace it with just the To Level Sections list.

                      Edit Act_Primary.html and replace the block
                      Code:
                                              <script language=Javascript1.2>
                                           	document.write(YahooSections(section_tree)) 
                                              </script>
                      with
                      Code:
                      NETQUOTEVAR:TOPLEVELSECTIONSTOP
                      If that works as you want, you can also remove the now redundant block of code
                      Code:
                      <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->
                      
                      <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
                      <!--
                      function YahooSections(ar)
                      {
                      var strIDs = '';
                      for (var i=1;i<=ar.length;i++)
                        {
                        if (ar[i].sURL != null)
                          {
                          strIDs += '<a href="' + ar[i].sURL + '"><span class="actxxsmall"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].sName + '</font></b></span></a><br>';
                            {
                            if (ar[i].pChild)
                              {
                              for (var j=1;j<=ar[i].pChild.length;j++)
                                {
                                if (ar[i].pChild[j].sURL != null)
                                  {
                                  strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall"><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].pChild[j].sName + '</font></span></a><br>';
                                  }
                                }
                              }
                            }
                          strIDs += '<br>'
                          }
                        }
                      return strIDs
                      }
                      //-->
                      </SCRIPT>


                      I realise I'm several years behind this thread but...

                      Have done the above - works a treat - except commenting out that script also comments out the formatting of the section list (the actxxsmall class etc) and putting that span code around the new NETQUOTEVAR:TOPLEVELSECTIONSTOP doesn't change it - could someone tell me how to get the former formatting back please?

                      Also the same process doesn't seem to work on the ActBrochurePrimary template - I get NETQUOTEVAR:TOPLEVELSECTIONSTOP appearing in plain text where my menu should be.

                      Thanks

                      Comment

                      Working...
                      X