3

I setup the native joomla module to display related items in articles, but by default only the title of the article displays. I want the article image and if possible the article rating to be displayed.

I have tried the code below which works for displaying article image in other modules but to no success.

<img class="img-responsive" src="<?php echo json_decode($item->images)->image_intro; ?>" alt="<?php echo $item->title; ?>"/>

I will appreciate your kind assistance.

Thanks.

2

Can you have a Look at How to add article image to module mod_article_categories??

Maybe this helps also on Module_related.

  • Thanks Franz for your suggestion. The code you suggested is the same i already tried as seen in my question. – kije Sep 12 '17 at 6:15
  • Sorry, i'm no Developer so i looked at Topic and Question, not on (for me unreadable) Code. – franz.wohlkoenig Sep 12 '17 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.