Announcement

Collapse
No announcement yet.

Extended info link in search results?

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

    Extended info link in search results?

    Hi guys...

    Is it possible to have a link in the search results that would open the extended info popup for that product?

    I was sure that something like this had been discussed previously, but I can't find it on the forum.

    Thanks!

    #2
    Did you try "searching" this forum?

    I found http://community.actinic.com/showthread.php?t=2741
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Ahh... the good old V6 forum. I knew I'd seen it somewhere.

      Thanks Norman!

      Comment


        #4
        Here's a Perl free method. Replace Act_SearchResults.html with
        Code:
        <!-- Results HTML begin -->
        <!-- Add Results Page header HTML here -->
        
        <script language=JavaScript>
        <!-- 
         function spopup(link){
          link = link.replace(/.*#a(.*)">/, '$1');	// extract the anchor
          link = link.replace(/_.{2}/g, '_');		// fix special characters
          link = 'info_' + link + '.html';		// make into URL
          document.write('<a href="javascript:ShowPopUp(\'' + link + '\', 400, 400)">');
        }
        //-->
        </script>
        
        <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10 WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
        	<TR>
        		<TD ALIGN=LEFT>
        		  <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
        		</TD>
        	</TR>
        	<TR>
        		<TD ALIGN=LEFT>
        		  <Actinic:SEARCH_RESULTS>
        		  <Actinic:S_ITEM/>.
        		  <Actinic:XMLTEMPLATE NAME="ImageLine">
        		  	<IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE>
        		  </Actinic:XMLTEMPLATE>
        		  <Actinic:S_LINK/><B><Actinic:S_PNAME/></B></A> <Actinic:S_SNAME/> <Actinic:S_PRICE/> <BR>
        
        <script language=JavaScript>spopup('<Actinic:S_LINK/>')</script>See the popup</a>
        
        		  <Actinic:S_DESCR/><BR>
        		  <Actinic:S_PROP/><P>
        		  </Actinic:SEARCH_RESULTS>
        		</TD>
        	</TR>
        	<TR>
        		<TD ALIGN=LEFT>
        		  <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
        		</TD>
        	</TR>
        </TABLE>
        <HR SIZE="1" ALIGN="CENTER" WIDTH="CUSTOMVAR:ACTSTDWIDTH">
        NETQUOTEVAR:SEARCHBLOCK
        
        <!-- Add Results Page footer HTML here -->
        <!-- Results HTML end -->
        This again assumes you're using the default extended info page name and have a popup for every product. You can move the

        <script language=JavaScript>spopup('<Actinic:S_LINK/>')</script>See the popup</a>

        if needed and change the "See the popup" text.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thank you Norman!

          I used a little bit of both method, because I wanted the product reference in the results too. I couldn't get the javascript working at first. After a bit of puzzling I added a "/" in front of info in the line below. "cgi-bin" kept appearing in the popup window's address.

          Code:
          link = 'info_' + link + '.html';		// make into URL
          The perl patch (in SearchScript.pl) shown in blue below, resulted in the product reference being displayed complete with the 1!, 2! etc. which is used to id duplicates. So if your product reference was AB12345 and your search brought up a duplicate the reference would be shown as 1!AB12345 for the first duplicate, 2!AB12345 for the second etc.

          Code:
          		
          		#
          		# Build the replacement tags
          		#
          		my $TheProdRef = $$rarrResults[$nCount];
          		$ACTINIC::B2B->SetXML('S_REF', $TheProdRef);
          		$ACTINIC::B2B->SetXML('S_ITEM', ($nCount + 1));
          I added the bit in red
          Code:
          		#
          		# Build the replacement tags
          		#
          		my $TheProdRef = $$rarrResults[$nCount];
          		$TheProdRef =~ s/^\d+\!//g;
          		$ACTINIC::B2B->SetXML('S_REF', $TheProdRef);
          		$ACTINIC::B2B->SetXML('S_ITEM', ($nCount + 1));
          to remove the number and exclaimation mark. I then added <Actinic:S_REF/> into Act_ResultsTemplate.html where the prodcut reference was to appear.

          Comment


            #6
            Hi,

            I am new to actinic catalogue and I’m currently trialling V8.

            I would like to link product search results directly to their extended info pages, and nowhere else. How do I go about doing this?

            I’ve tired to follow this thread but not sure where to find Act_SearchResults.html as per Norman's solution. Please can someone help!

            Thanks in advance

            Comment


              #7
              In V8 all the design layouts are in the Library. Look in Design / Library / Layouts / Search Results / Standard Search Result. Note that the V7

              <Actinic:S_LINK/>

              will now be

              <Actinic:Variable Name="SearchResultLink"/>
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Thanks Norman, I've now got this working!

                cheers

                Comment


                  #9
                  Originally posted by ninidag
                  Hi,

                  I am new to actinic catalogue and I’m currently trialling V8.

                  I would like to link product search results directly to their extended info pages, and nowhere else. How do I go about doing this?

                  I’ve tired to follow this thread but not sure where to find Act_SearchResults.html as per Norman's solution. Please can someone help!

                  Thanks in advance
                  Could anyone please explain exactly what you need to do to get this working in V8? I assume that the code below is for V7 so I did not really want to try it. Also I have got all our extended info page opening within the site window.

                  If this is possible I would be very keen to know how.

                  Angi
                  christopherpiperwines.co.uk
                  skatewarehouse.co.uk
                  progrow.co.uk
                  cheeksandcherries.co.uk

                  Comment


                    #10
                    Upgrade to the latest version

                    Comment


                      #11
                      Originally posted by RuralWeb
                      Upgrade to the latest version
                      I am running 8.5.1 which seems to be the latest version according to the downloads page (unless you know something I don't )

                      Angi
                      christopherpiperwines.co.uk
                      skatewarehouse.co.uk
                      progrow.co.uk
                      cheeksandcherries.co.uk

                      Comment


                        #12
                        I meant the latest beta version - link on the forum

                        Comment


                          #13
                          unless you know something I don't
                          As a designer you really should keep up to date better

                          Comment


                            #14
                            Originally posted by Angi
                            I am running 8.5.1
                            and post in the correct forum
                            Affordable solutions for busy professionals.
                            Website Maintenance | UK Web Hosting

                            Comment


                              #15
                              unless you know something I don't )
                              A THANK YOU would be nice - but I suppose you are too busy for that - until the next time you want FREE help

                              Comment

                              Working...
                              X