Search - results template - add content?

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
admsh
Forum Members
Forum Members
Posts: 93
Joined: Tue Aug 19, 2008 6:30 pm

Search - results template - add content?

Post by admsh »

I'm sorry for double posting - I've realised this should be posted here and don't see a way to delete the post on the modules board -

I'm trying to add a few lines of the page content to the search results template. I wonder if there's a solution to do this?

I've tried adding "$entry->content" to the template, like this, but it doesn't seem to work:

Code: Select all

{foreach from=$results item=entry}
  <li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)<br />{$entry->content|truncate:300}</li>
{/foreach}
Post Reply

Return to “CMSMS Core”