OS Property support center

listing propertys

  • gifialta
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 week ago #80783 by gifialta
listing propertys was created by gifialta
Dear Dang Thuc Dam

I set the point type menu:Layout: Property listing layout ( Sort properties by: featured status, Order properties by: desc)
I received the list: first shows the featured objects, and then a list of other objects.
How to set up the sorting of other objects after featured?. I need to sort other objects after featured by date created.

I noticed that on the Advanced Search page, under the condition of sorting on featured - other objects sorted by date created - as I need.
I found in a file: ../components/com_osproperty/classes/listing.php
line 1414
for sorting the objects after featured answers:
"
if($sortby == "a.isFeatured"){
$Order_by = " ORDER BY $sortby $orderby,a.created desc";
}else{
$Order_by = " ORDER BY $sortby $orderby";
}
"

Add the same code? or how to solve this problem? Help me please.

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

  • gifialta
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 week ago #80828 by gifialta
Replied by gifialta on topic listing propertys
Really need your help. Please

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

More
9 years 1 week ago #80841 by Mr. Dam
Replied by Mr. Dam on topic listing propertys
Hi Gifialta,
If you want to have the hard code for this ordering, we can help you to implement it. Please submit ticket and send your site information with super admin account. We will help you to implement the modification.
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan