How to set the files to sort by date of the update?

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
kxhuang080
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Thu Jul 13, 2017 1:05 am

How to set the files to sort by date of the update?

Post by kxhuang080 » Mon Jul 31, 2017 6:24 am

Hi ,
By default ,OpenKM sort files by document name .Now I want to change sort setting, but I cann't do anything.Because I do not find any setting in OpenKM Administraotor tab . So anyone who can help me solving this problem?

Thanks!
Attachments
Untitled.png

jllort
Moderator
Moderator
Posts: 10909
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to set the files to sort by date of the update?

Post by jllort » Wed Aug 02, 2017 10:08 am

Do you want to change the default sort, change by name in favour of creation, is that ? for it should modify source code ( do you have JAVA skills for it ? )

kxhuang080
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Thu Jul 13, 2017 1:05 am

Re: How to set the files to sort by date of the update?

Post by kxhuang080 » Tue Aug 08, 2017 8:53 am

Hi, jllort

Yes, change the default sort. I don't have java skills, but my colleague has. So what should I do next ?

jllort
Moderator
Moderator
Posts: 10909
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to set the files to sort by date of the update?

Post by jllort » Sat Aug 12, 2017 8:03 am

Should take a look at FileBrowser.java ( there you should take a look at the ExtendedScrollTable.java and ExtendedColumnSorter.java ).
Application first load folders, then documents and finally the mails, take a look at refresh(String fldId ) between lines 393 until 522)
When paginated is enabled the logic might changes and servlet take more control in ordering.

The source code is available at https://github.com/openkm/document-management-system

For the development environment https://sourceforge.net/projects/openkmportabledev/ ( but is not updated with github source code is still pointing to old svn at sourceforge ). From here you will find some clues about how installing yourself https://docs.openkm.com/kcenter/view/ok ... lipse.html

Post Reply