Page 1 of 1

Display order by Creation Date

Posted: Tue Jun 21, 2022 1:44 am
by fulkron
Hello,
In my opinion a very important feature missing in Mayan respect the competitors is the ability, in a single cabinet or after a search, to display documents by Creation Date (ascending and descending) and not only alfabetically by Label as now.
Thanks in advance
Dario

Re: Display order by Creation Date

Posted: Fri Jun 24, 2022 10:15 pm
by bwakkie
Better request this new filter for cabinets via https://gitlab.com/mayan-edms/mayan-edms/-/issues

What is possible but not what you want is sort documents by adding:

Code: Select all

?_ordering=-datetime_created
to your URL so it becomes:

Code: Select all

../documents/?_ordering=-datetime_created
I tried to add this to a search result too but this ends in an error

Re: Display order by Creation Date

Posted: Mon Jul 25, 2022 8:20 pm
by fulkron
@bwakkie forgive the delay in reply.
THANKS!!
Your trick is working for me attaching the parameter _ordering=-datetime_created at the end of the query referring a specific Cabinet.
It what I was looking for.
I hope can be implemented in a new release but for the meantime it solved my situation.

Dario