OS Property support center

Subtitle where to change?????

  • Mark
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #73405 by Mark
Subtitle where to change????? was created by Mark
Ace Hotel
20 West 29th Street, Gramercy - Flatiron, New York, 10001, New York, United States
1786
€ 5 000,00 / Per month

Agent
Jenifer Sadecky

Ace Hotel is the title
20 west 29th street...... is the subtitle.

So where can i edit the subtitle. Idea is not to publish the postcode or zipcode but rest should remain. but agent must insert the postcode only it get not published.

Please give instruction here in the forum so that everybody can make the changes by them self. Thank you.

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

More
9 years 4 months ago - 9 years 4 months ago #73419 by Mr. Dam
Replied by Mr. Dam on topic Subtitle where to change?????
Hi Mark,
You can modify the subtitle at file: components > com_osproperty > classes > listing.html.php
Code:
//get subtitle if($row->show_address == 1){ $row->subtitle = OSPHelper::generateAddress($row); }else{ $addInfo = array(); $addInfo1 = array(); if(($row->price > 0) and ($row->price_call == 0)){ $addInfo1[] = OSPHelper::generatePrice($row->curr,$row->price); } if(($row->bed_room > 0) and ($configClass['use_bedrooms'] == 1)){ $addInfo[] = $row->bed_room." ".JText::_('OS_BEDROOMS'); } if(($row->bath_room > 0) and ($configClass['use_bathrooms'] == 1)){ $addInfo[] = OSPHelper::showBath($row->bath_room)." ".JText::_('OS_BATHROOMS'); } if(($row->rooms > 0) and ($configClass['use_rooms'] == 1)){ $addInfo[] = $row->rooms." ".JText::_('OS_ROOMS'); } if(($row->square_feet > 0) and ($configClass['use_squarefeet'] == 1)){ $addInfo[] = $row->square_feet." ".OSPHelper::showSquareSymbol(); } $addInfo1[] = implode(", ",$addInfo); $row->subtitle = implode(" | ",$addInfo1); }

Thanks
Dam
Last edit: 9 years 4 months ago by Mr. Dam.

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

  • Mark
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #73421 by Mark
Replied by Mark on topic Subtitle where to change?????
thank you but the code you publish is not in listing.php. that code is in listing.html.php.
but i can not see where i can remove the postcode / zipcode?

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

More
9 years 4 months ago #73437 by Mr. Dam
Replied by Mr. Dam on topic Subtitle where to change?????
Hi Mark,
You can modify the the Address function: generateAddress at file: components > com_osproperty > helpers > helper.php
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan