Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Passing search term to search results

Quote Reply
Passing search term to search results
Hello,

In search_results.html I've changed:

<p>Your search returned <b><%cat_hits%></b> categories and <b><%link_hits%></b> Links.

to:

<p>Your search for <b>"<%query%>"</b> returned <b><%cat_hits%></b> categories and <b><%link_hits%></b> Links.

This works great when there are search results, but the search term is not passed if no links are found. The only place I could find "No Matching Links" is in the language.txt file in the line:

'SEARCH_NOLINKS' => 'No Matching Links.',

I've tried changing this to:

'SEARCH_NOLINKS' => 'No Matching Links for <%query%>.',

...and to:

'SEARCH_NOLINKS' => 'No Matching Links for ${'query'}.',

...and to:

'SEARCH_NOLINKS' => 'No Matching Links for \'%query\'.',

...I've also tried a host of other incorrect code. Since this is a text file, it's obvious that my syntax is wrong.

Am I even looking at the correct file to alter? Anyone know how I can accomplish this?

Thanks
Subject Author Views Date
Thread Passing search term to search results ronzo 3744 Jan 14, 2003, 6:51 PM
Thread Re: [ronzo] Passing search term to search results
afinlr 3641 Jan 15, 2003, 4:28 AM
Post Re: [afinlr] Passing search term to search results
ronzo 3656 Jan 15, 2003, 7:03 AM
Thread Re: [afinlr] Passing search term to search results
Matthias70 3402 Dec 21, 2007, 10:21 AM
Thread Re: [Matthias70] Passing search term to search results
brewt 3393 Dec 21, 2007, 11:08 AM
Post Re: [brewt] Passing search term to search results
Matthias70 3405 Dec 21, 2007, 11:15 AM