Announcement

Collapse
No announcement yet.

"SearchResultLink" not creating correctly

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

    "SearchResultLink" not creating correctly

    I am trying to make the thumbnail image of my search results clickable.

    I have managed to make a simple text link work, but for some reason it will not work with the image..
    Here is the code itself, you can see the "LINKAGE" which works perfectly, but the image doesnt, is there anything instantly wrong with the way i have done it?

    <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" />" border="0">
    </a>
    </Actinic:XMLTEMPLATE>
    </actinic:block>
    <actinic:variable name="SearchResultLink" />
    LINKAGE
    </a>


    URL of my site:

    http://www.thebunkerwarehouse.co.uk/...og/search.html

    If you search for "M65" you should get a fair amount of results to play with.

    Thanks a lot everyone.

    Bash
    Nineplus.com - Surfboards, Longboards, Wetsuits and Accessories.

    #2
    I see 2 closing </a> tags and none opening?

    Comment


      #3
      The variable "SearchResultLink" gives an <a> tag...

      it works for the "LINKAGE" text, but not for the image...
      Nineplus.com - Surfboards, Longboards, Wetsuits and Accessories.

      Comment


        #4
        You need <a href="xxx"><img src="xxxx"></a>

        Comment


          #5
          Does the varable not pass a:

          <A HREF="###PRODUCT URL###">

          ?
          Nineplus.com - Surfboards, Longboards, Wetsuits and Accessories.

          Comment


            #6
            If you look at the source code for the page, the ahref code is created, but it does not work...
            Nineplus.com - Surfboards, Longboards, Wetsuits and Accessories.

            Comment


              #7
              You're right. I can't see why the image isn't clickable. Why not add some normal text to see what happens. E.g.

              CLICK ME<img src="......"></a>
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Hmm,

                ok thats done.

                <actinic:block if="%3cactinic%3avariable%20name%3d%22SearchResultShowsImage%22%20%2f%3e" >
                <Actinic:XMLTEMPLATE NAME="ImageLine">
                <actinic:variable name="SearchResultLink" />
                CLICK HERE
                <img src="<actinic:variable name="SearchResultProductImage" />" border="0">
                </a>
                </Actinic:XMLTEMPLATE>
                </actinic:block>


                The "CLICK HERE" is clearly inside the <a href... and </a> tag but still isnt picking up the link.

                strange..
                Nineplus.com - Surfboards, Longboards, Wetsuits and Accessories.

                Comment


                  #9
                  Bash,

                  Think this code may be confusing the page generation:-

                  <td rowspan="2" width="110>

                  You are missing a closing "

                  Have a look in the 'Standard Search Result' layout for it
                  Cheers

                  David
                  Located in Edinburgh UK

                  http://twitter.com/mcfinster

                  Comment


                    #10
                    Thanks all,

                    Sorted now.

                    "You read through a section of code time and time again, but dont see the missing character"

                    LOL

                    THANKS!!!!
                    Nineplus.com - Surfboards, Longboards, Wetsuits and Accessories.

                    Comment


                      #11
                      Done it about a million times myself! Think my brain works quicker than my fingers!
                      Cheers

                      David
                      Located in Edinburgh UK

                      http://twitter.com/mcfinster

                      Comment

                      Working...
                      X