- Posts: 189
- Thank you received: 0
Any questions about Documents Sellers, post it here .
Sort Documents By Date
- MyWorld
- Topic Author
- Offline
- Elite Member
Less
More
12 years 5 months ago #16468
by MyWorld
Sort Documents By Date was created by MyWorld
How can I get the documents to sort "by date" (showing most current date first)?
Every time I add a new document I have to use the sort order to get the most recent document to show first on the list.
Thank you!!
Every time I add a new document I have to use the sort order to get the most recent document to show first on the list.
Thank you!!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 5 months ago #16605
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Sort Documents By Date
Hi
You want to change it from front-end or back-end of your site ? Could you please send me the link to the page ?
Tuan
You want to change it from front-end or back-end of your site ? Could you please send me the link to the page ?
Tuan
Please Log in or Create an account to join the conversation.
- MyWorld
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 189
- Thank you received: 0
12 years 5 months ago #16633
by MyWorld
Replied by MyWorld on topic Re: Sort Documents By Date
I would like to have the option to sort the documents by date in the backend so that it displays by date in the front end.
This would be a nice feature to add to the component.
This would be a nice feature to add to the component.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 5 months ago #16684
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Sort Documents By Date
Hi
For now, please use the solution below :
1. Open the file administrator/components/com_dms/models/documents.php
2. Find the code below :
3. Change it to :
After that, it should work as expected .
Tuan
For now, please use the solution below :
1. Open the file administrator/components/com_dms/models/documents.php
2. Find the code below :
Code:
$filter_order_Dir = $mainframe->getUserStateFromRequest( $option.'filter_order_Dir', 'filter_order_Dir', '', 'word' );
3. Change it to :
Code:
$filter_order_Dir = $mainframe->getUserStateFromRequest( $option.'filter_order_Dir', 'filter_order_Dir', ' DESC ', 'word' );
After that, it should work as expected .
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.