Page 1 of 1

Extending search results [solved]

Posted: Thu Jul 18, 2013 11:18 pm
by RogierDamen
I'm trying to extend the search results with some page specific text. Sometimes the page name is not enough.

I have tried to include {$entry->alias} but that doesn't work (not available?)

Code: Select all

<li><a href="{$entry->url}">{$entry->urltxt}</a> |
{cgsimple::get_page_content({$entry->alias},'block','foo')}{eval var=$foo}
 | ({$entry->weight}%)</li>
Preferable with a hidden txt on the page with f.i get_page_content of CGSimpleSmarty. But this doesn't work.

Has someone an option to include extra text in the search results, maybe with a completely different approach ?

Re: Extending search results

Posted: Fri Jul 19, 2013 1:03 am
by applejack

Re: Extending search results

Posted: Sat Jul 20, 2013 7:24 pm
by RogierDamen
Thanks applejack, that seems to be very useful and the solution of my problem. Seems I have to do more extensive searches in English as well ;-)