All questions about EDocman extension

[feature request] default sort option

  • kufikugel
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago - 12 years 3 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
Last edit: 12 years 3 months ago by kufikugel.

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

More
12 years 3 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

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

  • kufikugel
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 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

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

  • kufikugel
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 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

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

More
12 years 3 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 :
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