SEARCH PARAMETER RESULTTEMPLATE
Posted: Tue May 23, 2017 9:34 am
{strip}
<h3>{$searchresultsfor} "{$phrase}"</h3>
{if $itemcount > 0}
{capture assign=newsids}
{cms_module module=CGBlog category="25" summarytemplate='searchnewsfaqsummary'}
{/capture}
{foreach from=$results item=entry}
{assign var=modrecord value='~'|cat:$entry->modulerecord|cat:'~'}
{if $entry->module == 'CGBlog' and $newsids|strpos:$modrecord !== false}
<p><a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</p>
{/if}
{/foreach}
{else}
<p><strong>{$noresultsfound} Try again</strong></p>
{cms_module module=Search modules='CGBLog' search_method="post"}
{/if}
{/strip}
How to use the parameter resulttemplate in search?
When i go to define a search result template, and i go to get it in the resulttemplate parameter i will not work as i can fix it?
<h3>{$searchresultsfor} "{$phrase}"</h3>
{if $itemcount > 0}
{capture assign=newsids}
{cms_module module=CGBlog category="25" summarytemplate='searchnewsfaqsummary'}
{/capture}
{foreach from=$results item=entry}
{assign var=modrecord value='~'|cat:$entry->modulerecord|cat:'~'}
{if $entry->module == 'CGBlog' and $newsids|strpos:$modrecord !== false}
<p><a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</p>
{/if}
{/foreach}
{else}
<p><strong>{$noresultsfound} Try again</strong></p>
{cms_module module=Search modules='CGBLog' search_method="post"}
{/if}
{/strip}
How to use the parameter resulttemplate in search?
When i go to define a search result template, and i go to get it in the resulttemplate parameter i will not work as i can fix it?