Change department order in SP Medical - Forum | JoomShaper
Solved Extensions

Change department order in SP Medical

Asked by Aleksandr Kowalczuk 2 years ago Last activity 2 years ago

Is there any way to change the order departments are displayed by? At this moment they are ordered by ID, from the oldest to the newest.

Accepted answer

Marked as the solution
Aleksandr Kowalczuk Asked this

At this moment there is no easy way to change the order that departments appear in. For example in the demo: https://demo.joomshaper.com/2018/medico/index.php/departments
The departments appear in the order that they were created in. I want to change it so they appear in an alphabetical order.
I managed to change it for myself by editing getListQuery() in components/com_spmedical/models/departments.php but this is a very dirty solution.

1 more reply

Mehtaz Afsana Borsha Staff
2 years ago · edited

Hi

Thanks for contacting us. No sorry there is no default option like this, without ID you can not display order departments.

-Regards.

Aleksandr Kowalczuk Asked this

Is there any possibility to modify the query that gets the departments? From what I understand it should be somewhere in the code.

Mehtaz Afsana Borsha Staff

Could you please explain it a bit more?

Mehtaz Afsana Borsha Staff

Got it but sorry there is no default way to do that, you can follow that solution which you shared.

Log in to reply.