Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
When I add new media it's listed in bottom. Is there a way how to reverse that. I like to have newest first.
Thanks Petr
This is something which we've always thought would be useful across Umbraco (media and content).
/Laurie
An event handler ought to do the job for you. Here's a similar thread and a fuller discussion: http://our.umbraco.org/forum/developers/extending-umbraco/7764-auto-sort-nodes-by-nodedate
cheers,doug.
Thank you Doug.
I hope something is build in, but I have chance to create my first event handler :-)
Petr
It's simple class and work for both documents and media. If anyone is interested I can create wiki page or project...
Yes, Petr, you're more than welcome to share your code in a wiki post, much appreciated!
Cheers,
/Dirk
Wiki page:
http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples/change-default-newitems-sorting
What's bad is that my project is in old umbraco v3 and it don't working here. Is there any workaround other then modifiing core for v3?
umbrao v7 and this issue still comes up huh?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Reverse sort in media section
Hello,
When I add new media it's listed in bottom. Is there a way how to reverse that. I like to have newest first.
Thanks Petr
This is something which we've always thought would be useful across Umbraco (media and content).
/Laurie
An event handler ought to do the job for you. Here's a similar thread and a fuller discussion: http://our.umbraco.org/forum/developers/extending-umbraco/7764-auto-sort-nodes-by-nodedate
cheers,
doug.
Thank you Doug.
I hope something is build in, but I have chance to create my first event handler :-)
Petr
It's simple class and work for both documents and media. If anyone is interested I can create wiki page or project...
Petr
Yes, Petr, you're more than welcome to share your code in a wiki post, much appreciated!
Cheers,
/Dirk
Wiki page:
http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples/change-default-newitems-sorting
What's bad is that my project is in old umbraco v3 and it don't working here. Is there any workaround other then modifiing core for v3?
Petr
umbrao v7 and this issue still comes up huh?
is working on a reply...