AnswerBun.com

Display intro image inside mod_breadcrumbs

Joomla Asked by geoplous on November 11, 2020

I try to add code in order to display article intro image inside the mod_breadcrumbs.php but I have no luck so far. Any help? I have tried some variations of this code:

 <?php
$article_images  = json_decode($item->images);
$article_image   = '';
$article_image_alt   = '';
if(isset($article_images->image_intro) && !empty($article_images->image_intro)) {
    $article_image  = $article_images->image_intro;
    $article_image_alt  = $article_images->image_intro_alt;
}?>                     
    
<a href="/<?php echo $item->link; ?>">
    <img class="" src="/<?php echo $article_image; ?>" alt="<?php echo $article_image_alt; ?>" >
</a>

Add your own answers!

Related Questions

Disabling cache on specific part of page from above comment

2  Asked on September 14, 2020 by ruchika

 

Custom Category Field

1  Asked on August 18, 2020 by grant-g

     

How do I pass _JEXEC to a php file?

1  Asked on August 6, 2020 by firefighter

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir