OS Property support center
SOLVED ! Remove property type from listing display
- What No Website
-
Topic Author
- Offline
- Platinum Member
-
- Full Stack Developer
Less
More
9 years 2 months ago - 9 years 2 months ago #77701
by What No Website
Joomla & Hand Coded Web Design
What no Website
SOLVED ! Remove property type from listing display was created 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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
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:
Good luck
Dam
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
-
- Full Stack Developer
9 years 2 months ago #77712
by What No Website
Joomla & Hand Coded Web Design
What no Website
Replied by What No Website on topic Remove property type from listing display
Good luck he says
I like that.
Here's what I edited:
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.

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