Search Results Preview

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Search Results Preview

Post 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.
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Re: Search Results Preview

Post by pukka »

Is this not possible then ???
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Search Results Preview

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

Return to “CMSMS Core”