Search Results Preview
Posted: Thu Jul 29, 2010 2:52 am
Hello,
How do i get the search module to show search results preview on the results page.
At the moment, the results are shown like so:
Search Results For "gallery"
Gallery (100%)
Videos (82%)
I'd like it to be displayed as:
Search Results For "gallery"
Gallery (100%)
This gallery has some bla bla bla.
Videos (82%)
The video gallery contains bla bla bla.
How do i do this?
The current template info is:
-----------------------------------------------------
{$searchresultsfor} "{$phrase}"
{if $itemcount > 0}
{foreach from=$results item=entry}
{$entry->title} - url}">{$entry->urltxt}({$entry->weight}%)
{*
You can also instantiate custom behaviour on a module by module basis by looking at
the $entry->module and $entry->modulerecord fields in $entry
ie: {if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'}
*}
{/foreach}
{else}
{$noresultsfound}
{/if}
------------------------------------------------------
Thanks.
How do i get the search module to show search results preview on the results page.
At the moment, the results are shown like so:
Search Results For "gallery"
Gallery (100%)
Videos (82%)
I'd like it to be displayed as:
Search Results For "gallery"
Gallery (100%)
This gallery has some bla bla bla.
Videos (82%)
The video gallery contains bla bla bla.
How do i do this?
The current template info is:
-----------------------------------------------------
{$searchresultsfor} "{$phrase}"
{if $itemcount > 0}
{foreach from=$results item=entry}
{$entry->title} - url}">{$entry->urltxt}({$entry->weight}%)
{*
You can also instantiate custom behaviour on a module by module basis by looking at
the $entry->module and $entry->modulerecord fields in $entry
ie: {if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'}
*}
{/foreach}
{else}
{$noresultsfound}
{/if}
------------------------------------------------------
Thanks.