SOLVED CGBlog thumbnails and categories in Search results
Posted: Sun Sep 29, 2013 1:58 pm
I have a site keyword search which only searches CGBlog module entries.
I'd like each item on the search results page to have a title, thumbnail image and which CGBlog category(s) the entry was posted in.
So far I can only make the title show up. The link to the blog entry is also working.
I'm running CMSMS 1.11.8, CGBlog 1.10.3, Search 1.7.10
Anyone got any ideas? Any help greatly appreciated - I've been searching the forums and trying various code combinations for ages with no success.
I'd like each item on the search results page to have a title, thumbnail image and which CGBlog category(s) the entry was posted in.
So far I can only make the title show up. The link to the blog entry is also working.
Code: Select all
<div class="grid">
<h3>{$entry->category.name}</h3>
<h2><a href="{$entry->url}">{$entry->urltxt}</a></h2>
<a href="{$entry->url}"><img src="{$entry->file_location}/{$entry->fieldsbyname.Thumbnail->value}" width="300" height="142" /></a>
</div>
Anyone got any ideas? Any help greatly appreciated - I've been searching the forums and trying various code combinations for ages with no success.