Apropos Sitecore blog: Presentation Logic

  • AWS CloudFront - now with query string support

    Great news - or should I say old news!? Apparently Amazon CloudFront have added support for query string forwarding for custom origin distributions. This feature was announced approximately two weeks after I had written this lengthy blog post on how to mitigate this deficiency when using CloudFront and Sitecore with dynamic media URLs. With the introduction of query string forwarding you can you can drop all the rewriting and just set… Read more ►

  • Using CloudFront CDN for Sitecore media content

    Ever since I discovered that Amazon CloudFront supported custom origins I have been thinking about how it could be used in a Sitecore solution. If you set up a custom origin pointing to your website it will effectively work as a caching proxy (edge cache). This can take some of the load off your Sitecore server and give a general boost to page performance* which again could have a positive affect on your SEO ranking. URL rewriting In this… Read more ►

  • ImageCropper and sc:image - the missing piece

    About a year ago a wanted to do a blog post on an image cropping processor. Only after writing all the code (doh!) I realised that one was already available in the shared source repository - ImageCropper. This is a brilliant extension of Sitecore's image resizing functionality that ensures that you always get a perfectly cropped image - regardless of the proportions of the image that the editors have uploaded. When the pipeline… Read more ►

  • Renderings vs. Sublayouts

    This is a question that I'm confronted with again and again - and just today it surfaced again: When should we use Sublayouts and when should we use XSL Renderings? Which is better? I guess my answer has always been a bit vague; it depends on what you are trying to do! Use a screwdriver for screws and a hammer for nails. I have always used XSLT renderings for simple presentation and I think it's an… Read more ►

  • Troublesome HR's and the RTE

    I recently came across a (yet another) IE7 annoyance. If you try and style a HR tag with a background image it is seemingly impossible to avoid the border around the image in IE7. After scouring the web I came across a solution that solves the problem and retains the HR tag (I reckon that is the best solution from a semantic point of view). So how do I go about having Sitecore's Rich Text Editor insert HR's like this: <div class="hr"><… Read more ►