Page 1 of 1

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

PostPosted:Mon Jul 31, 2017 6:24 am
by kxhuang080
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!

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

PostPosted:Wed Aug 02, 2017 10:08 am
by jllort
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 ? )

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

PostPosted:Tue Aug 08, 2017 8:53 am
by kxhuang080
Hi, jllort

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

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

PostPosted:Sat Aug 12, 2017 8:03 am
by jllort
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