OS Property support center

Property order in 'city' listing

  • Stuart
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 2 months ago #59308 by Stuart
Property order in 'city' listing was created by Stuart
Hi

I have changed 2 menu items from "Layout: Property listing layout' to "Layout: List properties of city", but for the city layout there appears t be no way to order the listing by price, date, etc as there was under property listing layout.

is this something I have missed in the settings, or does this not exist for city property view?

Thank you.

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

More
10 years 2 months ago #59404 by Mr. Dam
Replied by Mr. Dam on topic Property order in 'city' listing
Hi Stuart,
The layout: "List properties by city" doesn't have feature to sort properties. But you hard code to change the "sorting by" value by modifying file:
components > com_osproperty > classes > listing.html.php
function: showPropertyCityListing
2 this lines:
$orderby = JRequest::getVar('orderby','a.id');
$ordertype = JRequest::getVar('ordertype','desc');
You can change value a.id to different values like: a.pro_name, a.ref, a.price, a.isFeatured and desc -> asc
Thanks
Dam

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

More
9 years 10 months ago #65546 by Kenneth Pabon
Replied by Kenneth Pabon on topic Property order in 'city' listing
Hello I follow the instruction but the system order still using the backend order by

please check the attachment..

I wanted to modify that into city.

KennethRules | Greenhouses
Attachments:

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

More
9 years 10 months ago #65548 by Mr. Dam
Replied by Mr. Dam on topic Property order in 'city' listing
Hi Kenneth,
The screenshot you sent to us the layout Property Listing layout, not Properties listing by city. My instruction is for the layout "Properties listing by city"
Thanks
Dam

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

More
9 years 10 months ago #65553 by Kenneth Pabon
Replied by Kenneth Pabon on topic Property order in 'city' listing
I see,

but On Layout Property Listing, I wanted to include the city on order list. is their way to do that? if you can guide me where I can edit via code.. I'll do that. thank you/.

KennethRules | Greenhouses

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

More
9 years 10 months ago #65556 by Mr. Dam
Replied by Mr. Dam on topic Property order in 'city' listing
Hi,
Currently, it's impossible to add city into the order list parameter field of Property Listing layout.
We also don't have details solution to implement it. But in general, you can add it by modifying function "listProperties" of file: components > com_osproperty > classes > listing.php
and XML file: components > com_osproperty > view > ltype > tmpl > default.xml
Thanks
Dam

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

More
9 years 10 months ago #65560 by Kenneth Pabon
Replied by Kenneth Pabon on topic Property order in 'city' listing
hello thanks.

I manage to work the order by city. BUT, system using the orderby state first then city. how to avoid the state? thank you. Please check the demo..
Demo URL

KennethRules | Greenhouses

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

Moderators: Mr. DamNguyen Phu Quan