How do I set it to sort categories alphabetically?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
linkazoid2
Posts: 10
Joined: Mon Jun 23, 2014 8:37 am

How do I set it to sort categories alphabetically?

Post by linkazoid2 »

How do I set it to sort categories alphabetically on V2.8.10?

Thanks,

Michael
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How do I set it to sort categories alphabetically?

Post by Thorsten »

Hi,

you can do this manually, there is no automatic sorting.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
linkazoid2
Posts: 10
Joined: Mon Jun 23, 2014 8:37 am

Re: How do I set it to sort categories alphabetically?

Post by linkazoid2 »

Hi,

This is a shame, you've previously shared a way to do this: viewtopic.php?f=2&t=10193 is this no longer possible to apply to 2.8.10?

Can you also please explain where the record sorting in the attached screenshot applies to?

Regards,

Michael
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How do I set it to sort categories alphabetically?

Post by Thorsten »

Hi,

the mentioned "hack" should still work in 2.8.10.

The ordering will be used in the catergoy overview pages.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
linkazoid2
Posts: 10
Joined: Mon Jun 23, 2014 8:37 am

Re: How do I set it to sort categories alphabetically?

Post by linkazoid2 »

Many Thanks,

Just in case anybody else is looking to do this. The following needs to be modified.

Do this:
Open \phpmyfaq\inc\PMF\Category.php, goto line 217 and change the code

Code: Select all

 fc.id",
to

Code: Select all

fc.name",
Thanks,

Michael
Post Reply