Custom property editor - control of mapping to corresponding C# property type
Hello,
Umbraco newbie here. For exercise purposes, I have implemented a custom property editor. It is a dropdown list where the options are pre-defined. I see that in the model class for the whole document type, Umbraco maps that to type Object. I don't want that. How can I exercise control over that?
Custom property editor - control of mapping to corresponding C# property type
Hello,
Umbraco newbie here. For exercise purposes, I have implemented a custom property editor. It is a dropdown list where the options are pre-defined. I see that in the model class for the whole document type, Umbraco maps that to type Object. I don't want that. How can I exercise control over that?
Thanks for the time.
Regards, Iliyan
Hi,
You'll be able to do that with a PropertyValueConverter: https://our.umbraco.com/documentation/Extending/Property-Editors/Property-Value-Converters/
Thank you ! I managed to adjust the examples there to my case.
is working on a reply...