Angryboy Wrote:With custom rendering you can do this. Create a component and give it the following code:
Code:<h3 class="search-entry-title">
<?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>
<div class="search-entry-more"><a href="<?php echo $item->link; ?>">...more</a></div>
Then within your (% %) brackets, paste
Code:component="COMPONENTSLUG"
With the component slug being the exact slug of the component you just defined (as a piece of advice, avoid having spaces and capital letters in your slug since that can introduce problems sometimes).
You can add virtually anything you want within the component to be displayed per-search-result. For example if you wanted to have a piece of information from a Customfield of yours, simply use:
<?php echo $item->fieldname; ?>
or
<?php echo htmlspecialchars($item->fieldname, ENT_NOQUOTES); ?>, depending on which one suits your needs. Have a fiddle around with the markup of your component until you've got what you are looking for.
This worked well. Thanks.