Copied to clipboard

Flag this post as spam?

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


  • iqb-dawn 21 posts 91 karma points
    6 days ago
    iqb-dawn
    0

    Media Picker With Contentment DataList

    I am trying to use Data List with Umbraco Content. I see the below list for editors,

    enter image description here

    How can I select Umbraco Media Picker editor here?

  • Lee Kelleher 4004 posts 15679 karma points MVP 12x admin c-trib
    6 days ago
    Lee Kelleher
    0

    Hi Dawn,

    I'm trying to understand what are you trying to achieve.

    Do you mean that you'd like a UI that is visually similar to the Media Picker style?

  • iqb-dawn 21 posts 91 karma points
    6 days ago
    iqb-dawn
    0

    Hi Lee,

    I am glad for your reply.

    Let's say we have list of items in Umbraco like,

    Items
         Item1
         Item2
    

    and we have separate nodes,

    A
        A1 (Should have Item1 Media Control and Item2 Media Control)
        A2 (Should have Item1 Media Control and Item2 Media Control)
        A3 (Should have Item1 Media Control and Item2 Media Control)
    

    Using contentment, I can choose Data Source as Umbraco Content (above Items) and list editor Checkbox List (but I don't want checkbox, I want Umbraco Media Picker instead of checkbox list).

  • Lee Kelleher 4004 posts 15679 karma points MVP 12x admin c-trib
    5 days ago
    Lee Kelleher
    0

    Sorry, I'm not really understanding where the Data List editor comes into this. If you want to pick media, then use the Media Picker editor instead? What am I missing?

  • iqb-dawn 21 posts 91 karma points
    3 days ago
    iqb-dawn
    0

    Have you seen my example above. How can I pick number of Media controls dynamically depending upon number of nodes?

  • Lee Kelleher 4004 posts 15679 karma points MVP 12x admin c-trib
    3 days ago
    Lee Kelleher
    0

    Yes, I saw your previous reply, but I'm still unsure what you're trying to achieve with the Data List editor, (my gut feeling is that it doesn't do what you're wanting it to do).

  • iqb-dawn 21 posts 91 karma points
    3 days ago
    iqb-dawn
    0

    Yea right, currently it only support dropdown, checkbox and radio but missing other Umbraco controls. May be it might be cool to have more controls in the list. Thanks for you r help.

  • Lee Kelleher 4004 posts 15679 karma points MVP 12x admin c-trib
    3 days ago
    Lee Kelleher
    0

    If you would like to make your own custom list-editor UI, that is totally possible. Docs are here:

    https://github.com/leekelleher/umbraco-contentment/blob/develop/docs/editors/data-list.md#extending-with-your-own-custom-list-editor

    I'm wondering if you've tried the Item Picker list-editor? That'd give you a slide-out panel to select items from. But my confusion with your question is that it's not a Media Picker (e.g. it doesn't pick anything from media, only the configured data-source, i.e. Umbraco Content).

    Which is why my original reply was...

    Do you mean that you'd like a UI that is visually similar to the Media Picker style?

    With Contentment, people have been creating their own custom list-editor UIs all the time. From the package's telemetry stats there have been over 50 custom UI.

  • iqb-dawn 21 posts 91 karma points
    3 days ago
    iqb-dawn
    0

    Yeah I saw this link and checked the source code of media picker and datetime and look like it is doable.

    Thanks again.

  • iqb-dawn 21 posts 91 karma points
    5 days ago
    iqb-dawn
    0

    @Lee Kelleher any hint or idea?

  • Ravi Motha 290 posts 500 karma points MVP 6x c-trib
    3 days ago
    Ravi Motha
    0

    Rather than having a list of media pickers , you could have 1 media picker picking multiple items..

    obviously the problem is matching how many items to each media>> I Love Lee's work , but i think this may not be the right tool for the job..

    or i think you might be better using a baked into Umbraco block list .. which you can configure to allow add a row , and then add a media picker with a single image ,

  • iqb-dawn 21 posts 91 karma points
    3 days ago
    iqb-dawn
    0

    Thanks Ravi

Please Sign in or register to post replies

Write your reply to:

Draft