Tag search and CGBlog
Posted: Sun Dec 08, 2019 12:19 pm
Based on the description in this topic viewtopic.php?f=4&t=80640 I modified the 'Search Results template' to:
The code above stops with a fatal error after 30seconds. Is the snippet above the way to use the CGBlog summary template to show the to the search related records, or do I have to mix the code from the summary template into the search results template?
Code: Select all
<h3>{$searchresultsfor} "{$phrase}"</h3>
{if $itemcount > 0}
<ul>
{foreach from=$results item=entry}
<li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
{if $entry->module == 'CGBlog'}
{CGBlog action="default" summarytemplate='blogSummary_LeftRight' articleid=$entry->modulerecord detailpage='logboek'}
{/if}
{/foreach}
</ul>
<p>{$timetaken}: {$timetook}</p>
{else}
<p><strong>{$noresultsfound}</strong></p>
{/if}