Page 1 of 1

Search results summary

Posted: Tue Jul 20, 2010 4:21 am
by Stryker777
In the search results template, I would like to have a summary of each result.  I have not found the variable to set that.  Is it even available?
Thank you!

Example:

Code: Select all

<h2 class="searchH2">Search Results For</h2>
<div class="titlehr"></div>
Keywords: "{$phrase}"<br /><br />
{if $itemcount > 0}
  {foreach from=$results item=entry}
 	<div class="search_result">
<h3>

  <a href="{$entry->url}">{$entry->urltxt}</a>
</h3>
      <p style="" class="description">   
	{$entry->summary}...
      </p>
  </div>
  {/foreach}

{else}
  <p><strong>{$noresultsfound}</strong></p>
{/if}

Re: Search results summary

Posted: Tue Jul 20, 2010 5:28 am
by Stryker777
Found a mod here:
http://www.webmasterworld.com/forum83/9134.htm

It requires core changes that would be overwritten if you update.  It also needs to have htmlentities removed from the line for title.  It does work though.  Hopefully I am just stupid and there is already a normal/correct way.