OS Property support center

SOLVED !!! Change order of select list

  • stratos
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 1 month ago - 10 years 1 month ago #60684 by stratos
Hello,
In the Search properties module > Property type, i wish to change the order of the drop-down select list.
Changing the order of the properties from the configuration of the component doesn't seem to affect the module.
Thank you
Last edit: 10 years 1 month ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #60709 by Mr. Dam
Replied by Mr. Dam on topic Change order of select list
Hi,
Please open file: modules > mod_ospropertysearch > mod_ospropertysearch.php
find
Select id as value,type_name$lang_suffix as text from #__osrs_types where published = '1' order by type_name
and replace by
Select id as value,type_name$lang_suffix as text from #__osrs_types where published = '1' order by ordering
And then, the order of options in dropdown select Property type will be sorted by the ordering of property types.
Thanks
Dam
The following user(s) said Thank You: stratos

Please Log in or Create an account to join the conversation.

  • stratos
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 1 month ago #60741 by stratos
Replied by stratos on topic Change order of select list
Done, thanks a lot!

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan