- Posts: 17
- Thank you received: 0
OS Property support center
[SOLVED!!!] sortby Bedroom instead of Feature
- Ng Hong Tien
- Topic Author
- Offline
- New Member
-
Less
More
11 years 1 month ago - 11 years 4 weeks ago #44084
by Ng Hong Tien
[SOLVED!!!] sortby Bedroom instead of Feature was created by Ng Hong Tien
Hi
where to modify sortby Feature to Bedroom ?
where to modify sortby Feature to Bedroom ?
Attachments:
Last edit: 11 years 4 weeks ago by Ng Hong Tien.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
11 years 1 month ago #44087
by Mr. Dam
Replied by Mr. Dam on topic sortby Bedroom instead of Feature
Hi Tien,
When you add new Joomla menu to layout: OS Property > Property listing layout. You are able to select the default sorting.
With advanced search, at the configuration page > Tab search. You will see the option to setup default sorting at the result page too.
Thanks
Dam
When you add new Joomla menu to layout: OS Property > Property listing layout. You are able to select the default sorting.
With advanced search, at the configuration page > Tab search. You will see the option to setup default sorting at the result page too.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Ng Hong Tien
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
11 years 1 month ago #44090
by Ng Hong Tien
Replied by Ng Hong Tien on topic sortby Bedroom instead of Feature
Hi Dam
i do not want to select a default sorting
i do not want to show features on property detail page
therefore
would like to replace feature sorting with Bedroom sorting
i do not want to select a default sorting
i do not want to show features on property detail page
therefore
would like to replace feature sorting with Bedroom sorting
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1696
11 years 4 weeks ago #44138
by Mr. Dam
Replied by Mr. Dam on topic sortby Bedroom instead of Feature
Hi Tien,
I am not sure with your request, but you can hack into source code of OS Property to change the Featured sorting to Bedroom sorting.
With normal list of properties page, you can hack into function : listProperties
with Advanced search, you can hack into function: advSearch
Both 2 above functions are in file
components > com_osproperty > classes > listing.php
Good luck
Dam
I am not sure with your request, but you can hack into source code of OS Property to change the Featured sorting to Bedroom sorting.
With normal list of properties page, you can hack into function : listProperties
with Advanced search, you can hack into function: advSearch
Both 2 above functions are in file
components > com_osproperty > classes > listing.php
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Ng Hong Tien
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
11 years 4 weeks ago - 11 years 4 weeks ago #44145
by Ng Hong Tien
Replied by Ng Hong Tien on topic sortby Bedroom instead of Feature
Thanks Dam
Found
is at listing.php
//order by, order type
$sortBy[] = JHTML::_('select.option','a.pro_name',JText::_('OS_TITLE'));
$sortBy[] = JHTML::_('select.option','a.id',JText::_('OS_LIST_DATE'));
$sortBy[] = JHTML::_('select.option','a.price',JText::_('OS_PRICE'));
$sortBy[] = JHTML::_('select.option','a.bed_room',JText::_('OS_BEDROOMS'));
Found
is at listing.php
//order by, order type
$sortBy[] = JHTML::_('select.option','a.pro_name',JText::_('OS_TITLE'));
$sortBy[] = JHTML::_('select.option','a.id',JText::_('OS_LIST_DATE'));
$sortBy[] = JHTML::_('select.option','a.price',JText::_('OS_PRICE'));
$sortBy[] = JHTML::_('select.option','a.bed_room',JText::_('OS_BEDROOMS'));
Last edit: 11 years 4 weeks ago by Ng Hong Tien.
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.