November Happy Hour will be moved to Thursday December 5th.

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
Sep 05, 2005 15:21
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
Sep 05, 2005 19:16
Vote:
 
Good response! Thank you! Regards Mateusz
#18208
Sep 06, 2005 10:24
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
Sep 07, 2005 18:04
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
Sep 07, 2005 21:48
* 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.