Good description for custom property?

Vote:
 
Hi! Where should I put description for custom property. For example in this code: [...] namespace MakingWaves.Fiff.Episerver.Properties { /// /// Summary description for PropertyLongStringSimpleEditor. /// [Serializable] [PageDefinitionTypePlugIn] public class PropertyLongStringSimpleEditor : PropertyLongString { public PropertyLongStringSimpleEditor() { } Regards M.Kierepka
#17442
Mar 25, 2008 19:33
Vote:
 
The PageDefinitionTypePlugIn attribute inherits from PlugInAttribute, which have a Description property. So, your code could look like this: [PageDefinitionTypePlugIn(Description="My description")] ... /Steve
#18207
Mar 25, 2008 19:43
Vote:
 
Good response! Thank you! Regards Mateusz
#18208
Mar 25, 2008 19:43
Vote:
 
hmm :) Good response but ... this not working ;( I checked: 1) [PageDefinitionTypePlugIn( DisplayName="Long string - simple editor", Description="Long string - simple editor") ] 2) public override string Description { get { return "FIFF: Years - list"; } } public override string DisplayName { get { return "FIFF: Years - list"; } } These codes above not working when I try edit property. In combobox showing all available properties - name of this property is always this same as name of class - but I want to have my own cool ;) name here. Regards M.Kierepka
#18209
Mar 25, 2008 19:43
Vote:
 
You can add a custom name for your property by using a language.xml file in the folder /lang: FIFF: Years - list Regards, Johan Olofsson
#18210
Mar 25, 2008 19:43
* 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.