Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Good description for custom property?

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
Sep 05, 2005 15:21
The PageDefinitionTypePlugIn attribute inherits from PlugInAttribute, which have a Description property. So, your code could look like this: [PageDefinitionTypePlugIn(Description="My description")] ... /Steve
Sep 05, 2005 19:16
Good response! Thank you! Regards Mateusz
Sep 06, 2005 10:24
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
Sep 07, 2005 18:04
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
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.