Tag: quick tip

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

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