Tag Archives: XSLT

Using UserControls instead of XSLT in Sitecore projects

The use of XSLT in Sitecore have been around since Sitecore 4. XSLT’s are fast to write and easy to deploy: All you need to update an XSLT is to copy a new file to your web server. The nature … Continue reading

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

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

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

Breadcrumb in Sitecore

In my quest for providing simpler topics about Sitecore development, I have decided to give you one of my simplest XSLT’s: the breadcrumb. This breadcrumb is probably used in every project I have ever implemented. To create a breadcrumb you … Continue reading

Posted in Sitecore 6 | Tagged , , , | 5 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

Sitecore XslHelper GetItem()

I am using the XslHelper from some C# code. I use the GetItem() function to get an item from a NodePathIterator. But the GetItem() generates an error “SystemInvalidOperationException: Enumeration has not started. Call MoveNext()“. The following code will fail with that … Continue reading

Posted in Sitecore 6 | Tagged , , | 1 Comment

Render XSLT’s from another Item

Rendering XSLT’s (or sublayouts for that matter) from another item can be very usefull. For example, if you have a spots region on your page, and each spot is rendered by different XSLT’s, you can place the XSLT rendering on … Continue reading

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

The difference between sc:fld and sc:field

One of my colleagues noticed that in Sitecore 6 there is a difference between the XSLT functions sc:fld (used since Sitecore 4) and sc:field (new in Sitecore 6). Alexey Rusakov explains about this in detail on his blog. The difference … Continue reading

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

XSLT Quick reference

I am using a lot of XSLT in my work with Sitecore 4 and 5. Practically every component that reads from Sitecore I do in XSLT. Only backend, formulars and business logic is programmed in c#. One of my colleagues … Continue reading

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