Announcement

Collapse
No announcement yet.

current url

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

    current url

    hi folks - im trying to do a facebook like button for each of my products, but struggling to get the 'current url' out of actinic. anyone done this successfully, or know how.

    much appreciated in advnace

    regards

    0

    #2
    Your products can appear with two different URL's; a plain one or a more complex one via the cgi-bin if the customer got there through the search results or if you're using business and have logged-in users.

    It might be easiest then to do this through JavaScript:
    Code:
    <script type="text/javascript">document.write(location.href);</script>
    Will always put the current URL into the page.

    If a plain URL is sufficient then use:
    Code:
    <actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      I'm also trying to get the Facebook Like button to work on each of my products (on the extended info page) but I keep getting errors.

      I can get a link to the main site ok (www.giftedindesign.co.uk) but not to the extended info page.

      This is the code I'm using:
      <iframe src="http://www.facebook.com/plugins/like.php?href=<actinic:variable name="CatalogURL" /><actinic:variable name="ExtendedInfoPageName" />;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

      This is an example of the facebook error message I'm getting:
      The page at http://www.giftedindesign.co.uk/acat...ayout=standard could not be reached.

      Can anyone point me in the right direction??

      Thanks
      Jackie
      Original gifts for all occasions by British Artists and Designers

      http://www.giftedindesign.co.uk

      Comment


        #4
        That ;layout=standard bit looks wrong.

        Perhaps it should be ?layout=standard
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Finally got it! Just needed an "&amp" after the variable code.

          Thanks for replying Norman.
          Original gifts for all occasions by British Artists and Designers

          http://www.giftedindesign.co.uk

          Comment

          Working...
          X