I guess you can change the name by translating it instead.
<contenttypes> <icontentdata> <properties> <PageCategory> <caption>Tags</caption> </PageCategory> <properties> <icontentdata> <contenttypes>
Haven't tried this though.
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?
Thanks.
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:
<languages> <language name="German" id="de"> <categories> <category name="CategoryName"> <description>Description in German</description> </category> <categories> </language> </languages>
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";
}
}
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 :
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.