- Posts: 13
- Thank you received: 1
OS Property support center
Making agent picture and agent name hyperlink
- Dejan
- Topic Author
- Offline
- New Member
-
Less
More
9 years 9 months ago - 9 years 9 months ago #66205
by Dejan
Making agent picture and agent name hyperlink was created by Dejan
Hi,
How to make agent picture and agent name hyperlink on agent listing page
How to make agent picture and agent name hyperlink on agent listing page
Last edit: 9 years 9 months ago by Dejan. Reason: misspeling
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 9 months ago #66216
by Mr. Dam
Replied by Mr. Dam on topic Making agent picture and agent name hyperlink
Hi Dejan,
What's the theme you are using now?
Thanks
Dam
What's the theme you are using now?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Dejan
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 1
9 years 9 months ago #66258
by Dejan
Replied by Dejan on topic Making agent picture and agent name hyperlink
I am using theme black
Please Log in or Create an account to join the conversation.
- brianpat pat
- Offline
- Premium Member
-
Less
More
- Posts: 87
- Thank you received: 0
9 years 9 months ago #66264
by brianpat pat
Replied by brianpat pat on topic Making agent picture and agent name hyperlink
I also need this functionality. Would be good to know how to do it.
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 9 months ago #66341
by Mr. Dam
Replied by Mr. Dam on topic Making agent picture and agent name hyperlink
Hi,
To add link (to Agent details) in Agent listing page, please follow these steps
Open file: components > com_osproperty > helpers > layouts > agentlist.php
Find
and replace by
Find
and replace by
Find
<?php echo $row->name?>
and replace by
Good luck
Dam
To add link (to Agent details) in Agent listing page, please follow these steps
Open file: components > com_osproperty > helpers > layouts > agentlist.php
Find
Code:
<img src='<?php echo JURI::root()?>images/osproperty/agent/<?php echo $row->photo?>' border="0" />
and replace by
Code:
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&task=agent_info&id='.$row->id);?>" title="<?php echo JText::_('OS_VIEW_DETAILS');?>">
<img src='<?php echo JURI::root()?>images/osproperty/agent/<?php echo $row->photo?>' border="0" />
</a>
Find
Code:
<img src='<?php echo JURI::root()?>components/com_osproperty/images/assets/noimage.jpg' border="0" />
and replace by
Code:
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&task=agent_info&id='.$row->id);?>" title="<?php echo JText::_('OS_VIEW_DETAILS');?>">
<img src='<?php echo JURI::root()?>components/com_osproperty/images/assets/noimage.jpg' border="0" />
</a>
Find
<?php echo $row->name?>
and replace by
Code:
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&task=agent_info&id='.$row->id);?>" title="<?php echo JText::_('OS_VIEW_DETAILS');?>">
<?php echo $row->name?>
</a>
Good luck
Dam
The following user(s) said Thank You: Dejan
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.