- Posts: 5
- Thank you received: 0
All questions about EDocman extension
[feature request] default sort option
- kufikugel
- Topic Author
- Offline
- New Member
Less
More
12 years 9 months ago - 12 years 9 months ago #14168
by kufikugel
[feature request] default sort option was created by kufikugel
Hi,
just a small feature request that would be useful if someone handle with lot of categories:
Default sort option for categories layout......like in the category layout. If you need help because off less time just email me.
regards,
Lars
just a small feature request that would be useful if someone handle with lot of categories:
Default sort option for categories layout......like in the category layout. If you need help because off less time just email me.
regards,
Lars
Last edit: 12 years 9 months ago by kufikugel.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 9 months ago #14169
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: [feature request] default sort option
Hi Lars
Thanks for your suggestion. However, I am not sure I will implement it because I think I will remove categories layout in future releases. That's because from version 1.0.4, we won't need to categories layout again. Just use category layout and it will display all subcategories and documents from a category. That's much better !
Regards,
Tuan
Thanks for your suggestion. However, I am not sure I will implement it because I think I will remove categories layout in future releases. That's because from version 1.0.4, we won't need to categories layout again. Just use category layout and it will display all subcategories and documents from a category. That's much better !
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- kufikugel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
12 years 9 months ago #14174
by kufikugel
Replied by kufikugel on topic Re: [feature request] default sort option
Hi Tuan,
thanks for fast reply. I'm an idiot.....really a simple solution *gg*
small hint.....you've forgott to update the version number in version 1.0.6
regards,
Lars
thanks for fast reply. I'm an idiot.....really a simple solution *gg*
small hint.....you've forgott to update the version number in version 1.0.6
regards,
Lars
Please Log in or Create an account to join the conversation.
- kufikugel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
12 years 9 months ago #14175
by kufikugel
Replied by kufikugel on topic Re: [feature request] default sort option
Hi Tuan,
me again....I changed to category view only now. But I have a similar problem. It would be nice to sort the categories also and not just the documents
thanks and regards,
Lars
me again....I changed to category view only now. But I have a similar problem. It would be nice to sort the categories also and not just the documents
thanks and regards,
Lars
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 9 months ago #14181
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: [feature request] default sort option
Hi
The sub-categories are sorting by ordering by default. For now, if you want to change it, you will need to modify the code yourself. The file is components/com_edocman/models/category.php, in the getCategories function, find the code below :
See the ORDER BY a.ordering in the code, change a.ordering to the field you want .
Regards,
Tuan
The sub-categories are sorting by ordering by default. For now, if you want to change it, you will need to modify the code yourself. The file is components/com_edocman/models/category.php, in the getCategories function, find the code below :
Code:
$query = 'SELECT a.* '
. ' FROM #__edocman_categories AS a '
. ' WHERE '.implode(' AND ', $where)
. ' ORDER BY a.ordering '
;
See the ORDER BY a.ordering in the code, change a.ordering to the field you want .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
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.