OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Display an image or text in REM house details view (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Display an image or text in REM house details view
#6904
bidbank (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Display an image or text in REM house details view 3 Years, 10 Months ago Karma: 0  
Good day,

I would like to display an image or text in REM house details view based on itemid. I tried using the following code but it does not seem to work:
Code:

<?php if($ItemId="42"){
      echo "text or image";
    }
    else{
      echo "some text";
    }?> 




Please help,

Thanks
 
Logged Logged  
  The administrator has disabled public write access.
#6915
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:Display an image or text in REM house details view 3 Years, 10 Months ago Karma: 61  
hello,

First of all you need check exist some thing in "$ItemId",

for that you need write some ting like:
Code:

echo  ":11111111111111:".$Itemid. ":11111111111111:";


Next in self code you need replace:
Code:

($ItemId="42")


to
Code:

($ItemId=="42")


and that code you need insert to
file:
{yours site}/components/com_realestatemanager/realestatemanager.html.php

function:
displayHouse

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?