Copied to clipboard

Flag this post as spam?

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


  • Jason Espin 368 posts 1335 karma points
    May 11, 2015 @ 13:10
    Jason Espin
    0

    Key/Value pair property type

    Hi all,

    Does anyone know whether there are any property types out in the Umbraco community that allow the entry of a set of key/value pairs?

    I need my back office users to be able to define a key and a value that will be used in a select list on the front end.

    So, the property would need to allow for something like this:

    Key               Value
    1                 Easy
    2                 Moderate
    3                 Hard
    4                 Challenging
    

    Thanks in advance.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 11, 2015 @ 13:19
    Dennis Aaen
    0

    Hi Jason,

    Could you perhaps use the dropdown list multiple or have I misunderstood completely what you are trying to do ?

    https://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors-v7/DropDown-List-Multiple

    Hope this helps,

    /Dennis

  • Jason Espin 368 posts 1335 karma points
    May 11, 2015 @ 13:24
    Jason Espin
    0

    Hi Dennis,

    This isn't really what I need. When a user edits a page in the back office they should have a field kind of like the related links property editor where they specify the key and then the value. Then if they wish to add another key/value to the list they click a + and it gives them another space to enter these.

    It seems crazy to me that a property like this doesn't already exist as it is fundamental when creating select options on the front end.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 11, 2015 @ 13:39
    Dennis Aaen
    0

    Hi Jason, 

    Okay now I see, could it be an alternative to use the multiple node tree picker, and create the select options based on which item the editor has choosen in the multiple node tree picker. https://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors-v7/Multinode-Treepicker 

    If you mean that it could be nice to have such a fundamental property you should create a feature request on the issue tracker http://issues.umbraco.org/

     

    Hope this helps,

    /Dennis  

  • Jason Espin 368 posts 1335 karma points
    May 11, 2015 @ 13:47
    Jason Espin
    0

    Hi Dennis,

    That kind of defeats the reason I want a property editor. In my view, you should only create pages in Umbraco if necessary otherwise the back-end just looks messy for the user. Creating pages in this instance would only serve the purpose of populating the multinode tree picker property which really should be reserved for linking or associating genuine Umbraco pages if you see what I mean. also, if you consider that the site is multi-lingual it means that the user will have to create several pages under each homepage node just to populate the select list with keys and values.

    I would raise it as a feature request but the process for that is too slow and I don't really have the luxury of waiting :-( I would also try and create my own property type that does this but unfortunately the documentation is lacking in my opinion.

    Cheers,

    Jason

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 11, 2015 @ 13:54
    Dennis Aaen
    0

    HI Jason, 

    For documentation about creating your own property editors, there is just been added a chapter on Umbraco TV on how to create a property editor http://umbraco.tv/videos/umbraco-v7/developer/extending/property-editors

    Hope this can help you,

    /Dennis

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 11, 2015 @ 15:41
    Dennis Aaen
    1

    Hi Jason, 

    I just discovered this https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/64690-Simple-package-not-available-TextValue-Dropdown-List thread on the forum, could it be the same that you want, if so then try write in the thread, maybe it can become a package for everyone else.

    /Dennis

  • Jason Espin 368 posts 1335 karma points
    May 21, 2015 @ 12:53
    Jason Espin
    100
  • Bjarne Fyrstenborg 1286 posts 4060 karma points MVP 8x c-trib
    May 21, 2015 @ 13:03
    Bjarne Fyrstenborg
    1

    Hi Jason

    Was it a package like this you were looking for? https://our.umbraco.org/projects/backoffice-extensions/key-value-editor

    /Bjarne

  • aman 13 posts 123 karma points
    Dec 15, 2016 @ 10:04
    aman
    0

    probably late, but this one I am going to use myself key value editor

  • yelena 1 post 71 karma points
    May 07, 2022 @ 20:33
    yelena
    0

    I believe I know a datatype that can build lists in a format like key-value pair. Just built and compatible with umbraco 9.4 Checkout at https://github.com/yelena870513/umbraco9keyvalue_editor

  • 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