Search results summary

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
Stryker777
Forum Members
Forum Members
Posts: 17
Joined: Sat Mar 08, 2008 4:21 am

Search results summary

Post 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}
Stryker777
Forum Members
Forum Members
Posts: 17
Joined: Sat Mar 08, 2008 4:21 am

Re: Search results summary

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

Return to “CMSMS Core”