Category Archives: Sitecore 5

Issues related to Sitecore 5

Extend the Sitecore FieldRenderer

The Sitecore FieldRenderer is the render controls used to render fields from Sitecore in a way that makes them page editable from the Page Editor (or Experience Editor as it is called in Sitecore 8). The FieldRenderer has been known … Continue reading

Posted in c#, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | Leave a comment

Sitecore Job Viewer – see what Sitecore is doing in the background

This simple .aspx page has become one of my most used tools when working with Sitecore. It’s a job viewer, displaying which jobs are running and which jobs are finished: A Sitecore job is a thread running in the background. … Continue reading

Posted in c#, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 6 Comments

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 , , , | 10 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