OS Property support center

Module mod_ospropertysearch - Show Amenities filte

  • Steven Motmans
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #37282 by Steven Motmans
Hi,

I am using the module mod_ospropertysearch on the left part of the website www.phi-immo.be

The sort of the Amenities filter is from Z to A. Is it possible to do the sort from A-Z., or even better to let me descide the order of the Amenities.

Thx in advance and sry for my bad english, it's not my native language.

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

More
11 years 10 months ago #37284 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Module mod_ospropertysearch - Show Amenities filte
Hi Steven,
To order the amenities in the search module by Alphabet, please follow these steps
1. Open file
modules > mod_ospropertysearch > mod_ospropertysearch.php
2. find
$db->setQuery("Select * from #__osrs_amenities where published = '1'");
$amenities = $db->loadObjectList();
and change it to
$db->setQuery("Select * from #__osrs_amenities where published = '1' order by amenities");
$amenities = $db->loadObjectList();

Good luck
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan