Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Iliyan 6 posts 76 karma points
    Aug 17, 2022 @ 15:01
    Iliyan
    0

    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

  • Patrick de Mooij 73 posts 623 karma points MVP 3x c-trib
    Aug 17, 2022 @ 15:10
    Patrick de Mooij
    0

    Hi,

    You'll be able to do that with a PropertyValueConverter: https://our.umbraco.com/documentation/Extending/Property-Editors/Property-Value-Converters/

  • Iliyan 6 posts 76 karma points
    Aug 18, 2022 @ 07:35
    Iliyan
    0

    Thank you ! I managed to adjust the examples there to my case.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies