Copied to clipboard

Flag this post as spam?

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


  • Narin Kaewchutima 3 posts 33 karma points
    Feb 20, 2020 @ 04:23
    Narin Kaewchutima
    0

    How to manual or custom sort images on default MediaPicker

    Hi,

    It seem the default sort images on MediaPicker windows is oldest first. After I upload new image, it will append to the bottom. If more than hundred images in 1 folder, it is the problem. (I realize that can create new folder but some case can have many images in a folder)

    Is there any way to custom sort order by newest upload date or others data need.

    Settings, custom code or create new plugin are acceptable.

    enter image description here

    Thank you in advance.

    narinkaew

  • Marc Goodson 2141 posts 14324 karma points MVP 8x c-trib
    Feb 20, 2020 @ 08:37
    Marc Goodson
    100

    Hi Narin

    There is a PR into the core here:

    https://github.com/umbraco/Umbraco-CMS/pull/7198

    That has some code in that provides for a ListView for the Media Picker, that then allows the contents of a folder to be sorted by date.

    So it might be possible to repurpose some of this.

    I had a prototype for V7 working here: https://github.com/marcemarc/tooorangey.MediaListPicker

    but much will have changed for V8...

    There is also an open issue on the Issue tracker regarding the enabling of picking the latest uploaded media item in the picker...

    https://github.com/umbraco/Umbraco-CMS/issues/5260

    Anyway, sorry not too helpful, I don't know of any package that 'does this' for V8 that's available right now.

    regards

    Marc

  • Narin Kaewchutima 3 posts 33 karma points
    Feb 21, 2020 @ 03:59
    Narin Kaewchutima
    0

    Hi Marc

    Thanks a lot. I think create new app_plugins is good solution for me by now.

    Your github is really helpful.

    Best regards,

    Narin

Please Sign in or register to post replies

Write your reply to:

Draft