Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Create custom property

Vote:
 

Hi all,

 

I want to create a custom property containing a image picker and a textbox. This might be a daft property but it's for education purpose.

I've been looking at this example for inspration: http://shahinalborz.se/2013/04/episerver-custom-property-multiple-category-checkbox-list-from-specific-sub-category/

In this example the PropertyCategoryCheckBoxList class inherits from PropertyMultipleValue. What should my class inherit if i want two different properties in my custom property?

 

Thanks

David

#77867
Nov 27, 2013 15:01
Vote:
 

If you want to have two or more properties in a property the recomended way is to create a block. This can then be used as the data type for a property on a model, for instance a page.

#77872
Nov 27, 2013 15:55
Vote:
 

Thank you!

#77873
Nov 27, 2013 15:59
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.