Hi,
Here is how you can translate DC Plugins http://blog.fredrikhaglund.se/blog/2011/06/28/dynamic-content-in-episerver-cms-6-r2/.
Hint: LanguagePath = "/dynamiccontent/hello" in the attribute DynamicContentPlugIn of the plugin.
Thanks Johan, but is there a way without out doing it with languages? Just out of curiousity.
I think you can override the Properties property and add your properties manually:
public override EPiServer.Core.PropertyDataCollection Properties
{
get
{
if (base.Properties == null)
{
PropertyDataCollection pdc = new PropertyDataCollection();
pdc.Add("A property with whitespace", new PropertyLongString());
SetProperties(pdc);
}
return base.Properties;
}
}
pdc.Add(
"A property with whitespace"
, is not a good idea. Some javascript functions use the name, and those will not work when you have whitespace in the name
So i might have spoke prematurely. So what is the best way change the labels for properties in dynamic content in 6r2
I know the lang files are a hassle. But I don't think there is any other ways.
They sure are, but like you said, it is probably the best way to do it. I will stop being lazy and do it with the language files. I do appreciate your help though. Much appreciated!!!
Good day,
I am in search of the attribute or documentation on how to change the dynamic content properties labels that show up in the ui. I know I have seen this before but for the life of me cannot find or remember how it was done. Right now, the labels are just the property names but would like attle more legible label. Thanks in advance.