Copied to clipboard

Flag this post as spam?

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


  • Dan Roma 18 posts 38 karma points
    Aug 21, 2015 @ 21:13
    Dan Roma
    0

    Creating a new datatype in Umbraco 7

    Anyone know how to create a custom datatype in Umbraco 7? I'm trying to create an updatable US State dropdown which is managable. I tried an example but doesnt seem to work in the newer paradigm - https://our.umbraco.org/forum/developers/api-questions/24031-Dropdown-Datatype-with-list-of-US-States but this is definitely what I'm looking for.

  • Marc Goodson 2157 posts 14435 karma points MVP 9x c-trib
    Aug 21, 2015 @ 21:32
    Marc Goodson
    0

    Have you seen this ?

    https://our.umbraco.org/projects/backoffice-extensions/state-picker/

    fairly impressive Umbraco 7 property editor!!

    If you're interested in how to create a property editor, this is a good starting point:

    https://our.umbraco.org/documentation/Extending/Property-Editors/

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Aug 23, 2015 @ 08:14
    Robert Foster
    0

    Hey Guys, The other alternative is to take a leaf out of the comments for the forum question you linked to originally - they suggest using the uComponents package and providing a data source (either enum or JSON) - you can do the same thing in Umbraco 7 with the nuPickers package (which is the successor for the uComponents package when it comes to Umbraco 7).

    Of course, if the state-picker plugin mentioned above by Marc does it for you, then all good - looks great, too!

  • 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