Different sort in tree module

Phoca Gallery modules - modules for Phoca Gallery extension
Thierry
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Mar 2009, 18:45

Different sort in tree module

Post by Thierry »

Hi Jan

Is it possible to change the sort order of the categories inside the Tree module

My caterogies appears by ID instead off alphabetical order

Thanks for your help

Thierry
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different sort in tree module

Post by Jan »

Hi, this need to be customized in the module, you need to change the sql query...

Jan
If you find Phoca extensions useful, please support the project
Thierry
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Mar 2009, 18:45

Re: Different sort in tree module

Post by Thierry »

Hi Jan

I have no Sql query on Joomla's backend for this module.

Do you mean "Change a value inside one file of this module" ?

if Yes could you tell me which one ?

Thanks

Thierry
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different sort in tree module

Post by Jan »

The sql query in module file:

modules\mod_phocagallery_tree\mod_phocagallery_tree.php
If you find Phoca extensions useful, please support the project
Thierry
Phoca Member
Phoca Member
Posts: 20
Joined: 13 Mar 2009, 18:45

Re: Different sort in tree module

Post by Thierry »

Hi Jan

Thanks for your response

it's cc.title instead of cc.ordering inside this file

Regards

Thierry
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different sort in tree module

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Karl1
Phoca Member
Phoca Member
Posts: 15
Joined: 15 Jun 2017, 16:25

Re: Different sort in tree module

Post by Karl1 »

Hi Jan
thanks for the information.
I Tried "...cc.title desc" and this worked.

But my question: how is the field "ordering" populated and how can I change it (from Backend) ?
I can live with the solution above but I would prefer not to change a php...
Regards Karl
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different sort in tree module

Post by Jan »

Hi, for now there is no option for it in module settings so there is nothing to change. You can only add the option there and implement it into the module. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply