Announcement

Collapse
No announcement yet.

Can anybody tell me why?

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

    Can anybody tell me why?

    Can anybody tell me why the search function is not working on my brochure page. I also put a javascript into the page which is also not functioning, these 2 features work fine on my Act_primary page.
    URL www.intouchmobile.co.uk
    E-cookie reward offered

    #2
    Search - Copy the generated code from the acatalog/index.html page and paste it into your broucure primary template.

    Menu - Use the Javascript code in the <HEAD> of your brochure primary

    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="actregular"><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="actxsmall"><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].pChild[j].sName + '</font></span></a><br>';
                }
              }
            }
          }
        strIDs += '<br>'
        }
      }
    return strIDs
    }
    //-->
    </SCRIPT>
    and this code where you want the menu to appear

    Code:
    <script language=Javascript1.2>
    	document.write(YahooSections(section_tree)) 
    </script>
    Owner of a broken heart

    Comment


      #3
      The javascript Ive got in the brochure works on the catalog pages but not the brochure page itself.
      This is also true of the search function.
      Ive put in the '<!--@act NETQUOTEVAR:SECTIONTREE_RAW -->' in the head tags already for the section list but it appears at the head of the page and is displayed in the brower above the site banner.
      If you look at the URL you'll see what I mean, look at the brochure page and the act_primary page.

      Comment


        #4
        You cant use NETQUOTEVAR:SECTIONLIST in brouchure you have to use the Yahoo Section list
        Owner of a broken heart

        Comment


          #5
          will it apear in the same way, the reason im asking is it will be in a fixed width column.

          Comment


            #6
            Rod

            place the

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

            in a fixed width table and the text will wrap if it needs to,

            ""I am the text from ABC maybe text to XYZ""

            Use the script in the Act_Primay.html as well then they will both look the same
            Owner of a broken heart

            Comment


              #7
              Doesnt seem to work. i'll plug away in the mean time.

              Comment


                #8
                Right, Ive got the section list working on the brochure page now, but the text NETQUOTEVAR:SIMPLESEARCH is still appearing on the page instead of the search function itself.

                Have i missed something?

                Comment


                  #9
                  Hi Rod

                  You will not be able to use NETQUOTEVAR:SIMPLESEARCH on the brochure pages. You will need v7 for this.

                  The following link from our knowledgebase will show you on how to include search on a brochure page: http://knowledge.actinic.com/users/k...dmin/acatalog/

                  Kind Regards
                  Nadeem Rasool
                  SellerDeck Development

                  Comment


                    #10
                    Originally posted by Nadeem
                    Hi Rod

                    You will not be able to use NETQUOTEVAR:SIMPLESEARCH on the brochure pages. You will need v7 for this.

                    The following link from our knowledgebase will show you on how to include search on a brochure page: http://knowledge.actinic.com/users/k...dmin/acatalog/

                    Kind Regards
                    Quality, cheers Nadeem.

                    Comment

                    Working...
                    X