Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2295

Templates for Joomla! 5.x • Re: Template Override com_finder results: Main image instead of intro image

$
0
0
Ok, some days later, no answers here.
But someone on a German forum pointed the right way:
plugins/finder/content/src/Extension/Content.php
Find the code of the first three lines and add the second three.

Code:

// Add the image.if ($images && !empty($images->image_intro)) {    $item->imageUrl = $images->image_intro;    $item->imageAlt = $images->image_intro_alt ?? '';} elseif ($images && !empty($images->image_fulltext)) {    $item->imageUrl = $images->image_fulltext;    $item->imageAlt = $images->image_fulltext_alt ?? '';}
So this is a core hack and might be lost on update. But the changes are quiet simple and the file can be edited again.

After applying the changes it's necessary to rebuild the index. Problem solved.

I would recommend this to go into Joomla! core.

Statistics: Posted by cherchri — Mon Aug 12, 2024 12:33 pm



Viewing all articles
Browse latest Browse all 2295

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>