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.
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
if (base.Properties == null)
PropertyDataCollection pdc = new PropertyDataCollection();
pdc.Add("A property with whitespace", new PropertyLongString());
Brilliant. Exactly what i was I was searching for. Thanks Johan
"A property with whitespace"
So i might have spoke prematurely. So what is the best way change the labels for properties in dynamic content in 6r2
Ahhh, We got a comedian in the house :)
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!!!