Did you know that you can access special properties of a Sitecore item the same way you get a typical field's value?  Supported 'special fields' are: @id = Item.ID.ToString() @key = Item.Key @lang = Item.Language.ToString() @mid = Item.BranchID.ToString() @name = Item.Name @tid = Item.... [More]

Field [More]

There are many ways to get the value of a Sitecore field and each is slightly different. string fieldName = "__Icon"; Sitecore.Data.Items.Item someItem = Sitecore.Context.Database.GetItem("/sitecore/content"); Sitecore.Data.Fields.Field someField = someItem.Fields[fieldName]; // you could use fie... [More]

I had discovered a little bug revolving around the Sitecore.Data.Fields.Field.ContainsStandardValue property in Sitecore (at least through current). You cannot trust the value returned by Field.ContainsStandardValue if you have made any of the following calls: Field.HasValue Field.G... [More]

Have you ever had a TreeList field in Sitecore only to see this when editing an item? There is no easy way to tell what is actually selected! Now, sure, you can rename the 1/2/3 items to be more descriptive, but that feels clunky to me. I've seen this a few times in Sitecore solutions we've ... [More]

We, at Hedgehog Development, have been intimately working with Sitecore serialization since it was released with Sitecore 6.0 in 2008. Specifically our interest has been in helping developers bring their Sitecore items into Visual Studio and essentially allow you to treat your Sitecore items as code... [More]

Sitecore Rules Engine and RegEx

September 29, 2011

I was having some fun with the Sitecore ( rules engine over the last couple days. Specifically, I was trying to show content editor warnings as well as control icons for templates based on the name of the item. However the Item name comparison, when using a regular expression, was never... [More]

Simple 404 with Sitecore

December 28, 2009

404's in Sitecore can be very simple or extremely complicated with site independent designs and functionality. While a blog post on the later would be a worthwhile blog post, this post will cover a very simple example of how to set the StatusCode of any page in your Sitecore installation. For one o... [More]

The FieldRenderer Control (Sitecore.Web.UI.WebControls.FieldRenderer) has a method called OverrideFieldValue that takes a string and is supposed to be shown instead of the real fields value, but it doesn't work. It seems a fix would be to add in a new pipline that accounts for this preset value. H... [More]

Sitecore REST API Service

January 19, 2008

If you are a Sitecore developer, go search the Sitecore Developer Network (SDN) for "REST" and tell me what you find. Nothing. Anyone who develops with Sitecore knows that documentation is lacking, but shouldn't this be something worth mentioning on your site? I digress. I was looking at the defaul... [More]