Gossamer Forum
Home : Products : DBMan : Customization :

Short display mod

Quote Reply
Short display mod
How can we dispaly in the short viewing the
name of the item we search ?

For example, if one entered "fabrice" as a
search request, it would display

The request is fabrice - The search has returned 32 hits

Thanks in advance
Quote Reply
Re: Short display mod In reply to
Is this a keyword search, or would users be searching on specific fields?


------------------
JPD





Quote Reply
Re: Short display mod In reply to
Hello JPDeni

Users will make search through specific
fields


Thank you in advanec
Quote Reply
Re: Short display mod In reply to
So that means there could be several fields that people have searched on.

At the beginning of html_view_success, you would add:

Code:
foreach $col (@db_cols) {
if ($in{$col}) {
$search_string .= " $in{$col},";
}
}
chop $search_string;

Then use $search_string to print out the search terms.

Code:
print qq|
<p><$font>The request is $search_string. Your search returned <b>$db_total_hits</b> matches.</font>
|;

------------------
JPD