By Mel on Tuesday, 07 July 2015
Replies 3
Likes 0
Views 1.2K
Votes 0
Hi,

My blog categories were created in a random order (I add them as I need them) and on the front end of EasyBlog 5 they display in alphabetical order (because we can set the sort order in the module).

However, in the composer, they display in the order they were created (not alphabetically).

Is there a way to set the default sorting for the composer categories to alphabetical?

Kind regards

Mel
Hi Mel,

I am sorry for the delay of this reply.

Is there a way to set the default sorting for the composer categories to alphabetical?


I am sorry but currently there is no option to configure the sorting in composer's categories. What you can do is to manually alter the sorting from the sql statement. To do this, open the file 'JOOMLA/administrator/components/com_easyblog/models/categories.php' and look for below code at line 759:


$query .= ' ORDER BY a.`lft`';


Replace the above with below and save your file.


$query .= ' ORDER BY a.`title`';


Hope this help and have a nice day!
Sam
·
Tuesday, 07 July 2015 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

works perfectly - just what I needed.

Is there any way to uncheck the default category to force users to select their own? I have submitted a voices request to be able to set the category for custom templates, but I realise this will take a while - a: to go through the voting system, and b: to be implemented. So I am just looking for a quick fix.

Thanks for your help

Mel
Mel
·
Tuesday, 07 July 2015 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mel,

Unfortunately that is not possible currently. EasyBlog 5 requires at least 1 primary category to be selected by default.
·
Tuesday, 07 July 2015 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post