Category Archives: Sitecore 5

Issues related to Sitecore 5

Save Sitecore Item from .aspx editor

Sitecore is an extendable platform, no doubt about it. For example it allows you to add an external (.aspx) page, to an item: The page will then show up on your item. But what if you wish to modify the actual Sitecore … Continue reading

Posted in General .NET, Sitecore 5, Sitecore 6 | Tagged , , , | 2 Comments

Adding a file to the Sitecore Media Library programatically

I thought it was tricky to read a file from disk and add it to the Sitecore media library untill I actually look into it. Sitecore has introduced 2 classes to help with the creation: The Sitecore.Resources.Media.MediaCreator and the Sitecore.Resources.Media.MediaCreatorOptions.  The … Continue reading

Posted in Sitecore 5, Sitecore 6 | Tagged , , , | 9 Comments

Check whether client’s browser have cookies enabled

Usually we assume that every user have cookies enabled. I cannot find any stats on the number of users who have disabled cookies, but 94% of all browsers have Javascript enabled, so lets assume that en equal number have cookies … Continue reading

Posted in General .NET, Sitecore 5, Sitecore 6 | Tagged , | 1 Comment

Creating a tree like left menu in Sitecore using XSLT

This is one of my oldest tricks in my book. The tree-like left menu is used for almost any website I do, and will work like on this site (example site is not developed by me nor by Pentia). This image is from … Continue reading

Posted in Sitecore 5, Sitecore 6 | Tagged , , | 6 Comments

Using declarative security in Sitecore

Writing XAML applications for use in the Sitecore shell can be very tricky. And I admit that I often decide to use a webform instead. Especially if I need to write a minor application that does not use Sitecore data … Continue reading

Posted in Sitecore 5, Sitecore 6 | Tagged , , | 1 Comment

Streaming objects into a cookie

Cookies are text strings that is used within the browser memory. In reality, cookies can store anything, as long as you follow these limitations: Do not store more than 20 cookies per domain. Do not store more than 4096 bytes … Continue reading

Posted in General .NET, Sitecore 4, Sitecore 5, Sitecore 6 | Tagged , , , | 2 Comments

Create an xslExtension for Lix for Sitecore

Pentia A/S‘ Lix for Sitecore module is a readability checker for Sitecore 5 and Sitecore 6 based on the Lix readability algorithm which is widely used for scandinavian languages (Danish, Swedish, Norwegian, …) and for Dutch. Having a low Lix is one … Continue reading

Posted in Sitecore 5, Sitecore 6 | Tagged , , , | 2 Comments

Create a Google style paging component in XSLT

I’ve noticed how most of the Sitecore blogs takes up relatively advanced topics on Sitecore, so I’ve decided to share with you some of my more simpler tricks. This article is meant as a tutorial.  This is a small XSLT I’ve … Continue reading

Posted in Sitecore 5, Sitecore 6 | Tagged , , , | 5 Comments

Applying datasource to sublayouts on Sitecore items

In Sitecore you can apply a datasource to a sublayout when adding it to a template/item. But the datasource is not automatically used. Your context will not change to the item specified in the datasource. The datasource is therefore not … Continue reading

Posted in Sitecore 5, Sitecore 6 | Tagged , , , | 11 Comments

Media Library file names. Tired of guids?

Have you noticed that when uploading files to the media library, sometimes the resulting file name is a guid? If I upload an image, say Brian.jpg, I need to write ~/media/9B62BB56FD6040FAA56C6DB1D8A0BDE6.ashx in order to acces it from the front end. And … Continue reading

Posted in Sitecore 5 | Tagged , , | Leave a comment