Search - results template - add content?
Posted: Sun May 08, 2011 2:28 pm
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:
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}