Announcement

Collapse
No announcement yet.

CDN Integration with Sellerdeck 2013

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

    CDN Integration with Sellerdeck 2013

    Hi
    I have heard that using a Content Delivery Network increases Google Rankings (by 5 - 10%) and can speed up the site for all visitors. I've just tried to get this done with MaxCDN.
    To make this work, we have to store all our images on the Max CDN Servers, and use their URL for all images on each web page.
    Sellerdeck seems to only allow us to keep images in the Sites folder (or acatalog folder on the server).
    If you have managed to find a way to change the location of the Image folder online, it would be great to hear how you did it!
    Many Thanks
    Charlie

    #2
    I am also interested in using a content delivery network to serve static files (images, css, js files, etc) and would be interested in comments from others who may have already done this.

    I would also like to see support for CDN built into a future release of Sellerdeck.

    The main issue would be pointing all image files, etc to a different URL.
    Darren Guppy
    Golf Tee Warehouse
    Golf Tees and Golf Accessories.

    Comment


      #3
      You would need to manually load your images to the CDN server.

      Once that is done, you could change part of the Standard Product Image layout from:
      Code:
         <img src="<actinic:variable name="ProductImageFileName" />"
      to:
      Code:
         <img src="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e"><actinic:variable name="ProductImageFileName" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" >http://pathtomycdnserver/<actinic:block php="true">echo basename('<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />');</actinic:block></actinic:block>"
      Changing the http://pathtomycdnserver/ to suit.

      There's a couple of BlockIf's that display the image in the normal way if Previewing and use the CDN URL if live.

      Note that this only deals with the Standard Product Image but should give you a sense of what needs done.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Note that SD's built-in PHP is probably capable of uploading the files to your CDN server. The "gotcha" would be in working out a way for it to not re-upload the files every time the site was updated.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Whoops. Just fixed a typo in post #3 above.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thanks Norman,

            When I get some spare time I will try setting up a CDN and try out your suggestion.
            I will have to see if the CDN (probably try out Amazon Cloudfront or Cloudflare first as these are either free or free for the first 12 months)

            I am hoping they offer an option to pull the static files from my webserver onto their CDN server automatically or I will have a look around at what software is around that could watch for the files and detect any changes and automatically transfer them across..
            Darren Guppy
            Golf Tee Warehouse
            Golf Tees and Golf Accessories.

            Comment

            Working...
            X