OS Property support center

relate property images and numbers

  • kmedri
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 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

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

More
10 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?> &nbsp;
</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
  • New Member
More
10 years 11 months ago - 10 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
Last edit: 10 years 11 months ago by kmedri. Reason: added a bit

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

Moderators: Mr. DamNguyen Phu Quan