Change Department Order In SP Medical - Question | JoomShaper

Change Department Order In SP Medical

AK

Aleksandr Kowalczuk

Extension 5 months 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.

0
5 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #137791

Hi

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

-Regards.

0
AK
Aleksandr Kowalczuk
Accepted Answer
5 months ago #139098

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.

0
AK
Aleksandr Kowalczuk
Accepted Answer
5 months ago #138903

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

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #138961

Could you please explain it a bit more?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #139123

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

0