All questions about EDocman extension

Document Search Issues

  • Paul Jacobson
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #33594 by Paul Jacobson
Document Search Issues was created by Paul Jacobson
Is there a way to have documents listed in reverse order by date to get the most recent hits first in the search module?

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #33622 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Document Search Issues
Hi Paul

Need to edit the code alitle in this case. Please open the file components/com_edocman/models/search.php, find the code below :
Code:
$query->order('a.ordering') ;

Change it to :
Code:
$query->order('a.id DESC') ;

After that, it will work as expected !

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam