Jump to content

How to display an image instead of text in a banner custom field


MelB

Recommended Posts

Hi,

I have some custom fields (banner type) and instead of text links I want to display them as images. The closes I have got to displaying the image is with this code:

$photoLink = cmsFramework::route("index.php?option=com_easysocial&view=photo=s&type=user&uid={$listing['User']['user_id']}&Itemid=4964"); echo "<a href='{$photoLink}'><img src=\media\hotlinks\"homelogo.jpg\"  /></a>";

This link works but it doesn't display the actual image - just the missing image placeholder. 

I have followed the instructions here: https://www.jreviews.com/docs/custom-fields#change-anchor-text-for-website-field and also checked out some past posts on here but cannot get my code to work correctly. 

I have switched to using the new webp in Jreviews would this be a reason the image isn't showing?

I am on Joomla 4, Latest Jreviews and php 8.1

Kind regards

 

Link to comment
×
×
  • Create New...