Year: 2012

A Shiny New Field Type: LinkList

[updated 2014-11-09] According to reports and comments, this module is not compatible with Sitecore 7.2 (and up). The code is available on Github for anyone to grab a copy and fix the problem. If you do, please be kind and

Posted in Sitecore Tagged with: , ,

Page Editor: Clear Image Field from Sitecore Page Editor

Update October 3, 2012 Apparently, there was already a solution available. Apparently, they teach you this in Sitecore education these days. Apparently, my Google skills sucks. Here’s a better solution: (Kudos @kayeeNL) – – – We had a need to enable

Posted in Sitecore Tagged with: , , ,

Gutter Warnings: Validate That The Item Has A Version (In Current Language)

Had a need to indicate to editors that the item does not have a version in the current language and wrote up a quick Gutter validator. public class NoLanguageVersionValidator : GutterRenderer { protected override GutterIconDescriptor GetIconDescriptor(Sitecore.Data.Items.Item item) { Assert.ArgumentNotNull(item, "item");

Posted in Sitecore

Quick Tip: A Quicker Content Preview

This might come off as a bit obvious, but chances are it might be news to some people; Previewing content in Sitecore is dull. There, I said it. It takes a couple of clicks to get your page previewed (Hit

Posted in Sitecore Tagged with: , ,

Quick tip: Item URLs based on Context Language

Normally an item’s URL is generated from the item’s name. We recently needed to have item URLs differ between languages. The solution was quite simple: set the linkmanager to use display name when generating URLs! The display name is language

Posted in Uncategorized Tagged with: , ,

Quick tip: Adding Media Items from a URL

I needed to create new media items programatically and a quick trip via Google came up with this excellent piece of content. Only thing is, I needed to fetch the image from a URL, not a file and came up

Posted in Sitecore Tagged with: , ,

Custom Field Type: LinkList

So, it took me quite some time to get around to this, but it’s almost time for a BETA release of a field type I needed for a project a while back. Preview: The Link List field type uses all

Posted in Uncategorized

Quick tip: Retrieving Sitecore Items from a WCF Service

In order to retrieve Sitecore Items from inside of a WCF Service you can get the database using var db = Sitecore.Configuration.Factory.GetDatabase("web"); and then simply call var item = db.GetItem("sitecore/content/Home/Item");. However, the WCF service is completely unaware of the Sitecore

Posted in Sitecore Tagged with: , ,