SEARCH PARAMETER RESULTTEMPLATE

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
antoniobarone95
New Member
New Member
Posts: 1
Joined: Tue May 23, 2017 9:29 am

SEARCH PARAMETER RESULTTEMPLATE

Post by antoniobarone95 »

{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?
Post Reply

Return to “The Lounge”