Create a custom component with the name 'news-results'. Give it the following coding:
(mvlcek is responsible for 99% of that code btw)
Then on your news page that is displaying the results, put the following between the php code :
You can meddle with the coding to get it to display exactly as you want, but that should display the image in your results. If you want to add more pieces to the results regarding new customfields, add this into the component where you wish:
Replacing FIELDNAME with the name of your field.
Code:
<h3 class="search-entry-title">
<img src="<?php echo htmlspecialchars($item->image, ENT_NOQUOTES); ?>">
<?php if ($showLanguage) { ?>
<span class="search-entry-language">
<?php echo htmlspecialchars($item->language, ENT_NOQUOTES); ?>
</span>
<?php } ?>
<a href="<?php echo $item->link; ?>">
<?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?>
</a>
</h3>
<?php if ($showDate) { ?>
<div class="search-entry-date">
<?php echo strftime($dateFormat, $item->pubDate); ?>
</div>
<?php } ?>
<div class="search-entry-excerpt">
<?php echo $item->getExcerpt($item->content, $numWords); ?>
</div>
(mvlcek is responsible for 99% of that code btw)
Then on your news page that is displaying the results, put the following between the php code :
Code:
'component'=>'news-results'
You can meddle with the coding to get it to display exactly as you want, but that should display the image in your results. If you want to add more pieces to the results regarding new customfields, add this into the component where you wish:
Code:
<?php echo htmlspecialchars($item->FIELDNAME, ENT_NOQUOTES); ?>