Announcement

Collapse
No announcement yet.

Removing sub-section names from sections

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

    Removing sub-section names from sections

    Hi everybody,

    I'm sure this is an easy one for all you brainys. I just want to stop showing the sub-section names on the main catalogue list.

    Thankyou!

    Pam
    www.marketestalls.com
    Last edited by pammyjz; 28-Feb-2006, 10:21 AM. Reason: want to add my URL so 'helpers' can have a look

    #2
    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>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      What kind of effect do you think this would have on search engines?
      Nick
      Trying to squeeze my moneys worth out of V7 - but not for much longer!

      Comment


        #4
        If the sitemap.html link is added to the bottom of all pages then everything should still be spidered and not linked via the cgi-bin (which the original and altered navigation will do)


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Pamela - interesting concept - have you had much interest in the venture? Has Actinic Express had an impact?


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            Wow Norman - how brilliant are you? Thankyou so much for your help. I'm going to go off and think of loads more questions for you now....... Many thanks Pam

            Comment


              #7
              Nick,

              This will actually help with search engines as these TOPLEVELSECTIONSTOP aren't javaScript generated but appear directly in the HTML.

              It's still a good idea to link to the Site Map as this links on to everything.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Hmmm - dont know what Actinic Express is. I'm getting lots of interest but its hard work. If you know anyone who may be interested please send them my way! Kind regards. Pam

                Comment


                  #9
                  Originally posted by NormanRouxel
                  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>
                  Hi Norman - looks like I spoke too soon. I followed the instructions you gave and it seemed to work on the test pages (ctrlW). However the live site is still showing the sub-section names. Any more ideas? Thanks Pam

                  Comment


                    #10
                    You may be using more than one Primary Template. E.g. If I look at http://www.marketestalls.com/acatalog/index.html that seems to be fine.

                    If I look at http://www.marketestalls.com/acatalo...h_Choices.html there's nothing showing at all. You'll have to check and see if these pages are usiong differnt Primart templates.

                    Also you should make the same change to Act_BrochurePrimary.html as I see you've got the menu on these pages too.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      This will actually help with search engines as these TOPLEVELSECTIONSTOP aren't javaScript generated but appear directly in the HTML
                      Possible a silly question, but... why use the yahoo thingy in the first place? What benefits does it provide. Or more importantly, what advantages will I lose when I ditch it?
                      John

                      Comment


                        #12
                        John

                        The YahooSections is only useful if you want a Top and Second level list. The drawbacks are:

                        1) Search engines can't follow the links. Adding a link to the Sitemap fixes this.

                        2) If you have a huge site then the generated JavaScript structure can become very large leadind to slow loading pages.

                        If you only want Top level links there's (as above) a better way to do it as this links to all your top level sections in a search engine friendly way without needing a Site map or loading a big JavaScript file.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          cool. smaller, faster, friendlier... what's not to like
                          John

                          Comment


                            #14
                            Having problems with this myself. I have followed the advice above but the top level sections are not even being listed at www.valentinewigs.co.uk. Can anyone help?

                            Richard

                            Comment


                              #15
                              Can you see NETQUOTEVAR:TOPLEVELSECTIONSTOP in your act_primary template? If so can you paste the code around it into the thread so we can see?
                              John

                              Comment

                              Working...
                              X