Extending search results [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
RogierDamen
Forum Members
Forum Members
Posts: 73
Joined: Fri Sep 21, 2012 8:00 pm

Extending search results [solved]

Post 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 ?
Last edited by RogierDamen on Sat Jul 20, 2013 7:25 pm, edited 2 times in total.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Extending search results

Post by applejack »

User avatar
RogierDamen
Forum Members
Forum Members
Posts: 73
Joined: Fri Sep 21, 2012 8:00 pm

Re: Extending search results

Post 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 ;-)
Post Reply

Return to “Modules/Add-Ons”