Anders G. Nordby

Lead Software Engineer at Sopra Steria

Monthly Archives: November 2012

Display the Category IDs in the Category Admin GUI (CMS 6)

This is just a quick tip for making debugging code using categories easier. You’ll find the admin GUI here:

C:\Program Files (x86)\EPiServer\CMS\6.1.379.0\Application\UI\CMS\Admin

Find the line displaying the category names, and change it to this:

<%# HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "Name").ToString() + " [" + ((Category)Container.DataItem).ID + "]" ) %>

Now you’ll see the IDs of all categories, making your code a lot more easier to debug:

Also take a look at these two very instructive blogposts: