01 Feb 2005
09 Nov 2010
Link to this post
Hi, I've sucessfully created a Generic content based module, Workshops. In the administration area, I can add, edit and delete, everything's great. Next I need to create a custom control to display items is a formatted list (I need to group by categories etc...).
Here's a sample of code that I've been trying to use to get a single item (hard-coded id for testing).:
Telerik.Cms.Engine.ContentManager contentManager = new Telerik.Cms.Engine.ContentManager("Workshops");
theContentItem = contentManager.GetContent(new Guid("f7814ca4-630c-4107-b6c8-f6626ff2a1db"));
Response.Write(theContentItem.GetMetaData("DatesLocations").ToString() + "<br />");
theContentItem and meta data fields are always null, I can get regular generic content items with no problems. Am I missing something?
thanks in advance.