Announcement

Collapse
No announcement yet.

Can Searchable Images Become Clickable!?

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

    Can Searchable Images Become Clickable!?

    Hi, was just wondering if searchable image can be made clickable? on the description is linked to the product?

    Cheers FrAz
    Cheers FrAz

    #2
    do you mean the image that appears in the search results?

    You can do this by moving the SearchResultLink variable (in blue italics) from before the SearchResultProductName to in front of the block if before the SearchResultProductImage
    This will then produce both the image and the product name as a clickable link. (it makes it all one link actually. I suppose you could duplicate it and put it around both individually instead, if you preferred)
    Hope that makes sense!
    Tracey

    Comment


      #3
      Yeh that's what i meant, am wanting the search result to give the same feeling as the rest of the site. I'll try your method and see if that sorts me out. Cheers Tracey, FrAz
      Cheers FrAz

      Comment


        #4
        Hi there

        You just need to replace all the image code in the 'Standard Search Result' layout with this:
        Code:
        <Actinic:XMLTEMPLATE NAME="ImageLine">
        	<Actinic:Variable Name="SearchResultLink"/><img src="<actinic:variable name="SearchResultProductImage" />" <actinic:variable name="SearchResultProductImageSize" /> border="0" /></a>
        </Actinic:XMLTEMPLATE>

        Comment


          #5
          Tried Tracey's method, didn't seem to do anything, i'll give your method ago cdicken, i'm sure it'll do the trick
          Cheers FrAz

          Comment


            #6
            Originally posted by Classix View Post
            Tried Tracey's method, didn't seem to do anything, i'll give your method ago cdicken, i'm sure it'll do the trick
            I tested it, to make sure, before I posted it so it does work.
            However Chris's method is essentially the same, just explained better (ie swap X for Y)
            Mine probably wasn't very well explained (multitasking probably)
            Tracey

            Comment


              #7
              Honestly, I never noticed my search result images were not clickable until I read this post.

              I used Chris's code and it worked like a champ.
              Copy. Paste. Done.

              Where would I be without this board? It makes my boss think I'm smart.

              Thanks!
              Kirk Pruitt
              Zims Autotechnik
              Bedford, Texas

              Comment


                #8
                I tried adding the code with cdicken post and uploaded our site, but our search images still are 'unclickable' here's the code for our standard search results page. Can anyone see what the problem is

                HTML Code:
                <Actinic:S_TABLESTART/>
                <p>
                <Actinic:Variable Name="SearchResultItem"/>.
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsImage%22%20%2f%3e" >
                <Actinic:XMLTEMPLATE NAME="ImageLine">
                	<Actinic:Variable Name="SearchResultLink"/><img src="<actinic:variable name="SearchResultProductImage" />" <actinic:variable name="SearchResultProductImageSize" /> border="0" /></a>
                </Actinic:XMLTEMPLATE>
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsName%22%20%2f%3e">
                	<Actinic:Variable Name="SearchResultLink"/><b><Actinic:Variable Name="SearchResultProductName"/></b></a>
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsSectionName%22%20%2f%3e">
                	<Actinic:Variable Name="SearchResultSectionName"/>
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsPrice%22%20%2f%3e">
                	<Actinic:Variable Name="SearchResultPrice"/> 
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsDescription%22%20%2f%3e">
                	<br /><actinic:variable name="SearchResultFullDescription" />
                </actinic:block>
                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsProperties%22%20%2f%3e" >
                	<br /><actinic:variable name="SearchResultProp" />
                </actinic:block>
                </p>
                <Actinic:S_TABLEEND/>
                Cheers FrAz

                Comment


                  #9
                  I tried
                  Code:
                  <Actinic:Variable Name="SearchResultLink"/><img src="<actinic:variable name="SearchResultProductImage" />" <actinic:variable name="SearchResultProductImageSize" /> border=0 /></a>
                  with no problems.

                  As always, an URL would allow us to see what's happening on your site.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    www dot classixshop dot com

                    cheers Norman
                    Cheers FrAz

                    Comment


                      #11
                      magaged to get it working properly. I was editing the code from within the design/library and then standard search result layout.

                      i implimented the code on the search results page and it worked fine.

                      thanks for all your help
                      Cheers FrAz

                      Comment

                      Working...
                      X