Override display name for Category on page data


hi Guys, 

For one of my project, I want to use the default multiple category picker from EPiServer for my tags. However, in order to attempt to override the display name of the property, I have tried the following :

 [EditorDescriptorRegistration(TargetType = typeof(CategoryList))]
    public class HideCategoryEditorDescriptor : EditorDescriptor
        public override void ModifyMetadata(
           ExtendedMetadata metadata,
           IEnumerable attributes)
            base.ModifyMetadata(metadata, attributes);

            var contentMetadata = (ContentDataMetadata)metadata;
            var ownerContent = contentMetadata.OwnerContent;
            if (ownerContent is NewsDetailPage
                && metadata.PropertyName == "icategorizable_category")
                //metadata.ShortDisplayName = "Tags";
                //metadata.GroupName = SystemTabNames.Settings;
                //metadata.GroupSettings.Name = "Tags";


This doesn't change the name, but works when I change the tab of the property. 

I also tried override the property, and added property name to the language file but no luck.

Have anyone tried this before, do you know any other way to work around this ?

Thanks very much.

Aug 05, 2014 6:21

Have you found any solutions?

Nov 27, 2014 12:43

I guess you can change the name by translating it instead.


Haven't tried this though.

Nov 27, 2014 14:22

Well, i don't want to change it's name in whole application.

I want to override it in my application but it doesn't seem to work.

(Ex: i have my blogs in two languages and i have my categories in English foe en-GB. but i want to change categories in same page with chinese language and

Episerver7.5 doesn't allow me to update category in other language.)

Any solution to update category in different laguages?


Nov 27, 2014 14:59

Ok, the first post is about changing the display name of the property. If I'm understanding you correctly, you want to translate individual categories? If so:

	<language name="German" id="de">
			<category name="CategoryName">
				<description>Description in German</description>
Nov 27, 2014 15:05

I have the same issue.
I just want to change when creating a special block

Any suggestions?

dynamic contentMetadata = metadata;
var ownerContent = contentMetadata.OwnerContent as IContent;
var ownerType = ownerContent.GetType().BaseType;

if (ownerType != null && ownerType.Name == "SpecialBlock")
var categoryService = ServiceLocator.Current.GetInstance<ICategoryService>();
var category = categoryService.GetCategoryStartNode(Categories.Industry);
if (category != null)
EditorConfiguration["root"] = category.ID;

base.ModifyMetadata(metadata, attributes);
if (metadata.PropertyName == "icategorizable_category")
metadata.DisplayName = "MyOwnName";
metadata.ShortDisplayName = "MyOwnName";

Jan 29, 2015 13:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.