19 Jul 2007
19 Apr 2011
Link to this post
I am implementing customizations so that categories are blog-specific. This approach uses the category hierarchy in which the first level corresponds to the blog owner and the second level are the categories for that blog. I have addressed the customization for presenting the blog categories to the end-user, but I'm struggling with the customization within the new / edit blog post screen.
My approach has been to create custom templates for PostNew.ascx and PostEdit.ascx, and modify the markup to reference my custom version of the ContentCategoryField web control. Within this control, InitializeControls handles the logic for fetching the customized list of categories for binding to CategoriesList.
My difficulty is with identifying the blog that is being used from within the custom ContentCategoryField control. There is a "BlogID" in this.Manager.MetaKeys but its value is empty.
Can you help me identify the active blog from within the ContentCategoryField control? Or should I be taking a different approach to customize the set of categories populated on this screen?