Category Archives: Sitecore 5

Issues related to Sitecore 5

Measuring Sitecore performance with HighResTimer

The HighResTimer is a Sitecore feature that has been around since Sitecore 4. It’s a simple timer that allows you to very precisely measure time in microseconds by using the underlying OS timers. It is very easy to use: The … Continue reading

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

Get Sitecore placeholders and rendering hierarchy from a Sitecore item

This article explains how you can get the hierarchy of placeholders and render them to your screen for debugging or documentation purposes. The Sitecore rendering engine allows you to place sublayouts inside placeholders. These sublayouts can contain more placeholders, thus … Continue reading

Posted in c#, General .NET, Sitecore 5, Sitecore 6, Sitecore 7 | Tagged , , , , , | 6 Comments

Missing buttons in Sitecore 6 shell

Have you experienced that the buttons in Sitecore 6 is missing? This can happen if you are running IE9, and you are switching between Sitecore 5 and Sitecore 6 websites on the same domain. The solution is easy. Simply clear … Continue reading

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

Get the Sitecore Sublayout from your .aspx page (Usercontrol)

How do you get the Sitecore Sublayout from a Usercontrol? A Sitecore Sublayout (Sitecore.Web.UI.WebControls.Sublayout) is a container for your Usercontrol (.ascx) page. Therefore the Sublayout is retrieved by typecasting the parent to a Sublayout: Having the Sublayout in hand enables … Continue reading

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

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 , , | 2 Comments

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