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.
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.
Thank you in advance.
narinkaew
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
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
is working on a reply...
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.