Copied to clipboard

Flag this post as spam?

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


  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jan 29, 2021 @ 12:56
    Markus Johansson
    0

    MNTP-like picker with custom data source for Umbraco 8

    Hi!

    I'm looking for a property editor that should work very much like MNTP (or Member Picker) but with a custom data source.

    I know we used to have nuPickers and that Contentment has some types of pickers but I'm looking for a picker that:

    • Shows a sortable list of picked items (like MNTP)
    • Fetches data from custom WebAPI-controller.
    • Opens selection in a "editor window" (like Member Picker and MNTP)
    • Supports a paged list in the editor.

    Does any one know of a package that does this?

    Member Picker example: https://our.umbraco.com/media/upload/65a3b3bb-c45a-4684-a712-d1619297d735/picker.png

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jan 29, 2021 @ 13:54
    Dan Diplo
    0

    Could you maybe use the DataList property editor from Lee's Contentment? It's the nearest I can think of.

    https://github.com/leekelleher/umbraco-contentment/blob/develop/docs/editors/data-list.md

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 29, 2021 @ 14:28
    Lee Kelleher
    0

    Coincidently, Søren was suggesting a similar idea recently...

    Tree Picker for (Contentment) Data List
    https://github.com/leekelleher/umbraco-contentment/issues/68

    I came to the conclusion that it wasn't an ideal fit for the Data List editor itself, but there is merit in having an MNTP-esque editor that could be configured with any custom Umbraco Tree as a data-source. I made a quick proof-of-concept, nothing close to "real world" production-ready.

    Could be worth exploring? (as I don't know of any packages that offer this feature)

    Cheers,
    - Lee

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 01, 2021 @ 14:20
    Markus Johansson
    0

    Thanks guys!

    Søren's proposal is qutie close to what I would need, my use case is similar with a "product picker" in this case but of course it would be good if the solution is generic.

    Another thing that I probably also need is the ability to use a image as a replacement for the icon. I created a little proof of concept for this project with support for the thumbnail as well.

    Lee, are you saying that this is not something for Contentment or just that the Data List was not a great fit? I'll continue to explore this in my current project and would be happy to share the end result or contribute with a PR if you would like.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Feb 01, 2021 @ 14:25
    Lee Kelleher
    1

    Lee, are you saying that this is not something for Contentment or just that the Data List was not a great fit? I'll continue to explore this in my current project and would be happy to share the end result or contribute with a PR if you would like.

    I'm saying that it wasn't a good fit for Data List specifically. I think a generic "Tree Picker" editor would be great, whether that's for Contentment or something else - I think it's worth exploring.

    I'll see if I can find my proof-of-concept, (was a couple of weeks ago, can't remember which local dev site I prototyped it on! haha). I'll get it up on a gist if/when I find it.

    Cheers,
    - Lee

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Feb 01, 2021 @ 17:29
    Lee Kelleher
    0

    I've found and dusted off my proof-of-concept TreePicker editor... https://gist.github.com/leekelleher/ce6c7d6bc7e783bfe58d271392d9a82b

Please Sign in or register to post replies

Write your reply to:

Draft