Announcement

Collapse
No announcement yet.

How do I remove the Sub sections from appearing in the Home Page "Store Section"

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

    #16
    can someone help me on this thread

    I am trying to change only the brochure page to have sections only
    and have followed the instructions:

    Originally Posted by Simon Bridges
    Hi Chris,

    Sorry, I have noticed that the code changes I made to Act_BrochurePrimary are slightly different. Locate the following piece of code (Line 132)

    <script language=Javascript1.2>
    document.write(YahooSections(section_tree))

    and change to:

    <script language=Javascript1.2>
    document.write(YahooSections(sections))

    This will then produced the required result in your home and brochure pages.
    All the best
    Simon

    P.S.
    I have adjusted home and brochure pages.

    But this is deleting the sections as well and I have an empty box! - I want to leave the catalog pages intact

    Thanks

    Angela

    Comment


      #17
      Those pages use Act_PrimaryCheckout.html, make the changes here and it should then look even over the site.

      Kind regards,
      Bruce King
      SellerDeck

      Comment


        #18
        Thanks Bruce,

        But I have made these changes to Act_BrochurePrimary and Act_PrimaryCheckout and I still get the same result, the store sections are blank on the brochure page! Am I missing something??

        I want to only change the brochure page and not the store pages, so do not want to alter Act_primary

        The changes I made were

        Originally posted by Simon Bridges
        Hi Chris,

        Sorry, I have noticed that the code changes I made to Act_BrochurePrimary are slightly different. Locate the following piece of code (Line 132)

        <script language=Javascript1.2>
        document.write(YahooSections(section_tree))

        and change to:

        <script language=Javascript1.2>
        document.write(YahooSections(sections))

        This will then produced the required result in your home and brochure pages.
        All the best
        Simon

        P.S.
        I have adjusted home and brochure pages.

        Thanks Again
        www.ashtondale.co.uk

        Comment


          #19
          Remove Sub sections from home page - clean layout

          Hi
          I would also like to remove sub sections from the home page but I'm using the Clean Layout 3.
          Can anyone help with the required changes ?
          Many Thanks
          Michaela

          Comment


            #20
            You will have to copy the generated code from a catalog page and paste it into Act_BrochurePrimary.html for it to work.

            Kind regards,
            Bruce King
            SellerDeck

            Comment


              #21
              Latest version seems to differ

              Instead of the code shown at the beginning of this article I find the following in Act_Primary.html

              <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>

              Which appears to be the script itself rather than calling it

              Any ideas what changes I should make to only get the top level sections

              Thanks
              Jane
              Jane

              Comment


                #22
                Those pages use Act_PrimaryCheckout.html

                Kind regards,
                Bruce King
                SellerDeck

                Comment


                  #23
                  Originally posted by Simon Bridges
                  Hi Chris,

                  Sorry, I have noticed that the code changes I made to Act_BrochurePrimary are slightly different. Locate the following piece of code (Line 132)

                  <script language=Javascript1.2>
                  document.write(YahooSections(section_tree))

                  and change to:

                  <script language=Javascript1.2>
                  document.write(YahooSections(sections))

                  This will then produced the required result in your home and brochure pages.
                  All the best
                  Simon

                  P.S.
                  I have adjusted home and brochure pages.
                  I find that following your advice here I end up with nothing in the brochure page menu. What I wanted was just the main sections listed. Am I missing something?

                  cheers,
                  Ken

                  Comment


                    #24
                    Originally posted by Simon Bridges
                    Hi Chris,

                    Sorry, I have noticed that the code changes I made to Act_BrochurePrimary are slightly different. Locate the following piece of code (Line 132)

                    <script language=Javascript1.2>
                    document.write(YahooSections(section_tree))

                    and change to:

                    <script language=Javascript1.2>
                    document.write(YahooSections(sections))

                    This will then produced the required result in your home and brochure pages.
                    All the best
                    Simon

                    P.S.
                    I have adjusted home and brochure pages.
                    I tried making the above mods but I then get an error on starting Actinic saying that 'sections' is undefined!

                    Help please?

                    Ken

                    Comment


                      #25
                      Ken,

                      Sorry for the delay in you getting a reply to this one, I seem to have missed it. What are you using as the place holder to bring in the sections? You should use NETQUOTEVAR:TOPLEVELSECTIONS_RAW, as this will generate a a JavaScript file called Act_sections.js that contains all the names, URLs, image filenames, image heights and widths and section IDs* of the top-level sections of the online store. Also creates the HTML in the store to incorporate that file.

                      Also note that the line <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT> (found in all Overall Layout templates) must always be ABOVE any of the script variables used (NETQUOTEVAR:TOPLEVELSECTIONS_RAW for eg) in order for them to function correctly.

                      I would also suggest downloading the Advanced Users Guide and looking on page 31 for 'Including Section Lists with Javascript'. This will give you more details into going about doing it correctly.

                      Kind regards,
                      Bruce King
                      SellerDeck

                      Comment


                        #26
                        Bruce, thanks for the advice - I'll have a look at that shortly. Just got back from holiday so much to catch up on.

                        Ken

                        Comment

                        Working...
                        X