OS Property support center

menu link to prop_types

  • sean01
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • here to help!
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.

More
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 Log in or Create an account to join the conversation.

More
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?

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

  • sean01
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • here to help!
More
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.

More
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.
Attachments:

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

More
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

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

More
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.

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

More
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

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

Moderators: Mr. DamNguyen Phu Quan