- Posts: 15
- Thank you received: 0
OS Property support center
relate property images and numbers
- kmedri
- Topic Author
- Offline
- New Member
-
Less
More
11 years 11 months ago #30289
by kmedri
relate property images and numbers was created by kmedri
Hi, I am trying to display the number of rooms etc as in the bottom of the relate properties in the property main window. I have managed to add the images however I cannot get the number of rooms to show up.
Also where is the code for the relate properties so I can change the images. see:
real.medri.co.nz/component/osproperty/?t...roperty_details&id=2
Many Thanks
Also where is the code for the relate properties so I can change the images. see:
real.medri.co.nz/component/osproperty/?t...roperty_details&id=2
Many Thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Away
- Administrator
-
Less
More
- Posts: 13021
- Thank you received: 1688
11 years 11 months ago #30299
by Mr. Dam
Replied by Mr. Dam on topic Re: relate property images and numbers
Hi Kmedri,
You can modify the function propertyDetails from file
components > com_osproperty > classes > listing.html.php
This code in that function
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bedroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bed_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bathroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bath_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/room.gif" border="0" class="icon_module" /> <?php echo $rproperty->rooms?>
</div>
<?php
}
is the code to show bathrooms, bedrooms and rooms of one relate property. You can add code to show other information if you need here.
Good luck
Dam
You can modify the function propertyDetails from file
components > com_osproperty > classes > listing.html.php
This code in that function
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bedroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bed_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bathroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bath_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/room.gif" border="0" class="icon_module" /> <?php echo $rproperty->rooms?>
</div>
<?php
}
is the code to show bathrooms, bedrooms and rooms of one relate property. You can add code to show other information if you need here.
Good luck
Dam
Please Log in or Create an account to join the conversation.
- kmedri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
11 years 11 months ago - 11 years 11 months ago #30302
by kmedri
Replied by kmedri on topic Re: relate property images and numbers
Hi Dam,
Is it possible to show the number of rooms for the displayed property as on the page I sent you at the top.
Also I am using the small.details.html.tpl.php, when I edit the listing.html.php the changes do not effect the front end? I am trying to change the images.
Thanks
Kev
Is it possible to show the number of rooms for the displayed property as on the page I sent you at the top.
Also I am using the small.details.html.tpl.php, when I edit the listing.html.php the changes do not effect the front end? I am trying to change the images.
Thanks
Kev
Last edit: 11 years 11 months ago by kmedri. Reason: added a bit
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.