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}