Page 1 of 1

Search Results Preview

Posted: Thu Jul 29, 2010 2:52 am
by pukka
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.

Re: Search Results Preview

Posted: Thu Jul 29, 2010 4:03 pm
by pukka
Is this not possible then ???

Re: Search Results Preview

Posted: Fri Feb 24, 2012 2:17 am
by fearmydesign
Hi did you ever get this to work? I am also trying to achieve the same thing using the {search} results... to display a preview of the page initial content ( a line or two)... thanks

Re: Search Results Preview

Posted: Fri Feb 24, 2012 7:32 am
by uniqu3