- Posts: 56
- Thank you received: 2
OS Property support center
menu link to prop_types
- sean01
-
Topic Author
- Offline
- Senior Member
-
- here to help!
Less
More
12 years 3 months ago #23294
by sean01
menu link to prop_types was created by sean01
Can you tell me the correct format to create menu link to property_types....... thanks Sean
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13024
- Thank you received: 1689
12 years 3 months ago #23301
by Mr. Dam
Replied by Mr. Dam on topic Re: menu link to prop_types
Hi,
Please go to menu, add menu, select layout : Property listing menu, and select the criteria parameters for that menu.
Good luck
Dam
Please go to menu, add menu, select layout : Property listing menu, and select the criteria parameters for that menu.
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Tony Cline
- Offline
- Senior Member
-
Less
More
- Posts: 65
- Thank you received: 0
12 years 2 months ago #25291
by Tony Cline
Replied by Tony Cline on topic Re: menu link to prop_types
Hi Dam,
I have created a menu item for specific property types and it works great. The only problem I am having is that I need the properties to be sorted in descending order by price. How do I accomplish this?
I have created a menu item for specific property types and it works great. The only problem I am having is that I need the properties to be sorted in descending order by price. How do I accomplish this?
Please Log in or Create an account to join the conversation.
- sean01
-
Topic Author
- Offline
- Senior Member
-
- here to help!
Less
More
- Posts: 56
- Thank you received: 2
12 years 2 months ago #25303
by sean01
Replied by sean01 on topic Re: menu link to prop_types
My results are sorted by descending by default, try selecting descending in your search form......
Please Log in or Create an account to join the conversation.
- Tony Cline
- Offline
- Senior Member
-
Less
More
- Posts: 65
- Thank you received: 0
12 years 2 months ago #25305
by Tony Cline
Replied by Tony Cline on topic Re: menu link to prop_types
When creating the menu it only gives me two sort choices - most recent or hits. I have attached a photo showing the drop down. It seems to overwrite the default order in the configuration settings.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13024
- Thank you received: 1689
12 years 2 months ago #25314
by Mr. Dam
Replied by Mr. Dam on topic Re: menu link to prop_types
Hi,
It's the issue, you can solve it by yourself by go to
components > com_osproperty > classes > listing.php
function propertyType
find
$orderby = JRequest::getVar('orderby','a.id');
replace by
$orderby = JRequest::getVar('orderby','');
find
if(!$orderby){
$orderby = $params->get('orderby', 'a.id');
//if ($orderby == 0) {
JRequest::setVar('orderby', $orderby);
//}
}
and change to
if($orderby == ""){
$orderby = $params->get('orderby', 'a.id');
//if ($orderby == 0) {
JRequest::setVar('orderby', $orderby);
//}
}
Good luck
Dam
It's the issue, you can solve it by yourself by go to
components > com_osproperty > classes > listing.php
function propertyType
find
$orderby = JRequest::getVar('orderby','a.id');
replace by
$orderby = JRequest::getVar('orderby','');
find
if(!$orderby){
$orderby = $params->get('orderby', 'a.id');
//if ($orderby == 0) {
JRequest::setVar('orderby', $orderby);
//}
}
and change to
if($orderby == ""){
$orderby = $params->get('orderby', 'a.id');
//if ($orderby == 0) {
JRequest::setVar('orderby', $orderby);
//}
}
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Tony Cline
- Offline
- Senior Member
-
Less
More
- Posts: 65
- Thank you received: 0
11 years 9 months ago #32892
by Tony Cline
Replied by Tony Cline on topic Re: menu link to prop_types
Hi Dam, the code in your last post does not seem to exist in the components > com_osproperty > classes > listing.php. Can you please give me additional information on how to fix this?
Thank you.
Tony.
Thank you.
Tony.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13024
- Thank you received: 1689
11 years 9 months ago #32895
by Mr. Dam
Replied by Mr. Dam on topic Re: menu link to prop_types
Hi,
In latest version, properties are ordered by pro_name
if($orderby == ""){
$orderby = $params->get('orderby', 'a.pro_name');
JRequest::setVar('orderby', $orderby);
}
Thanks
Dam
In latest version, properties are ordered by pro_name
if($orderby == ""){
$orderby = $params->get('orderby', 'a.pro_name');
JRequest::setVar('orderby', $orderby);
}
Thanks
Dam
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.