- Posts: 31
- Thank you received: 1
OS Property support center
Property order in 'city' listing
- Stuart
- Topic Author
- Offline
- Junior Member
-
Less
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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
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
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.
- Kenneth Pabon
-
- Offline
- New Member
-
9 years 10 months ago #65546
by Kenneth Pabon
KennethRules | Greenhouses
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.
please check the attachment..
I wanted to modify that into city.
KennethRules | Greenhouses
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
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
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.
- Kenneth Pabon
-
- Offline
- New Member
-
9 years 10 months ago #65553
by Kenneth Pabon
KennethRules | Greenhouses
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/.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
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
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.
- Kenneth Pabon
-
- Offline
- New Member
-
9 years 10 months ago #65560
by Kenneth Pabon
KennethRules | Greenhouses
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
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. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.