Tag Archives: sublayout

Sitecore locating sublayouts on your webpage

This is a followup from the post, Get Sitecore placeholders and rendering hierarchy from a Sitecore item, where I adress one of the difficulties when working with pages in Sitecore, that they tend to get very complex as one page may … Continue reading

Posted in Sitecore 6, .net, Sitecore 7, Sitecore 8 | Tagged , , , , , | 5 Comments

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

Merge Sitecore layout details using XmlDeltas

One of the features that Sitecore introduced somewhere in the Sitecore 6.x range is “Layout Deltas“,  the possibility to merge an item’s layout details with the layout details on the item’s __Standard Values template. It means that you can add sublayouts to the __Standard … Continue reading

Posted in .net, c#, Sitecore 6, Sitecore 7 | Tagged , , , | 2 Comments

Avoid the use of Sitecore.Context.Item

Or: How Sitecore DMS and Personalization killed the Sitecore.Context.Item. This post is about how to properly ensure that you get data from the correct item when you develop websites that can be personalized. The Sitecore.Context.Item returns the current item, i.e. … Continue reading

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

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

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