OS Property support center

SOLVED ! Remove property type from listing display

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 2 months ago - 9 years 2 months ago #77701 by What No Website
Trying to remove the following from the property listing display and can't seem to find where it is.


Joomla & Hand Coded Web Design
What no Website
Last edit: 9 years 2 months ago by Mr. Dam.

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

More
9 years 2 months ago #77708 by Mr. Dam
Replied by Mr. Dam on topic Remove property type from listing display
Hi,
To remove Property type name in Property details page, you should follow these steps
1. Open file: components > com_osproperty > templates > default > details.html.tpl.php
2. Find:
Code:
<div class="row-fluid"> <div class="span12"> <?php echo JText::_('OS_PROPERTY_TYPE').":"; ?> <?php $needs = array(); $needs[] = "property_type"; $needs[] = "ltype"; $needs[] = "type_id=".$row->pro_type; $itemid = OSPRoute::getItemid($needle); $link = JRoute::_('index.php?option=com_osproperty&task=property_type&type_id='.$row->pro_type.'&Itemid='.$itemid); echo "<a href='$link' title='$row->type_name'>".$row->type_name."</a>"; ?> </div> </div>

Good luck
Dam

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

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 2 months ago #77712 by What No Website
Replied by What No Website on topic Remove property type from listing display
Good luck he says :P I like that.

Here's what I edited:
Code:
<div class="span12"> <?php // echo JText::_('OS_PROPERTY_TYPE').":"; ?> <?php /* $needs = array(); $needs[] = "property_type"; $needs[] = "ltype"; $needs[] = "type_id=".$row->pro_type; $itemid = OSPRoute::getItemid($needle); $link = JRoute::_('index.php?option=com_osproperty&task=property_type&type_id='.$row->pro_type.'&Itemid='.$itemid); echo "<a href='$link' title='$row->type_name'>".$row->type_name."</a>"; */ ?> </div>

Worked a treat, thanks. I have a line break but I'll wait and see if the client is bothered about that before I roll up my sleeves again.

Thanks.

Joomla & Hand Coded Web Design
What no Website

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

Moderators: Mr. DamNguyen Phu Quan