Announcement

Collapse
No announcement yet.

Search Results Link

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

    Search Results Link

    I'm trying to use the link from the variable SearchResultsLink, but without the built in 'a href'. Is there anyway to get at this and change it or duplicate the variable and create a modified one?
    Web . Design . Multimedia . Branding

    #2
    I guess it'd be the same or very similar to the Best/New sellers links:

    Code:
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable Name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>"><Actinic:Variable Name="ProductName"/></a>
    What exactly are you trying to do with this?

    Comment


      #3
      That doesn't work I'm afraid as you're not allowed the ProductID or ProductName on the search page/layout.

      I need the actual url as I'm placing the link into a JavaScript onclick on a whole div:
      Code:
      <div class="content" onclick="window.open('LINK NEEDED HERE','_self')">
      Web . Design . Multimedia . Branding

      Comment


        #4
        Have you tried using PHP to strip out the non-required parts of the URL?


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          I haven't yet. Was hoping there was an easier way. Any pointers?
          Web . Design . Multimedia . Branding

          Comment


            #6
            Is the php online or offline?

            Comment


              #7
              Now using PHP Version 5.2.8
              Web . Design . Multimedia . Branding

              Comment


                #8
                What is my imagination, or did my post from yesterday disappear?

                Anyway, Lee, in answer to your question again. Not 100% sure what you mean but I am testing online and it still doesn't work:

                http://www.pixelcreation.co.uk/clien...ION&PR=-1&TB=A

                The code I'm currently trying is:

                Code:
                $link = '<actinic:variable encoding="perl" name="SearchResultLink"
                selectable="false" />';
                $link = preg_replace('{.*HREF="(.*)".*}', "$1", $link);
                echo $link;
                Web . Design . Multimedia . Branding

                Comment

                Working...
                X