Gossamer Forum
Home : Products : Gossamer Links : Discussions :

If search.cgi ...

Quote Reply
If search.cgi ...
Hi!

I'm trying to insert some stuff whenever search.cgi is used but don't know how. Pirate

I want to display additional info for search.cgi?isHot=Yes and similar stuff (not just query) ...

Whats the right tag or something?

Thanks! Smile
Quote Reply
Re: [Payooo] If search.cgi ... In reply to
You need to add &isHot=Yes after the ?query=something in the query string.

Example:

http://www.yourdomain.com/cgibin/search.cgi?query=something&isHot=Yes

If you want to do this from the search form, then add something like the following in your search form template:

Quote:

<input type="checkbox" name="isHot" value="Yes"> Is Hot?

========================================
Buh Bye!

Cheers,
Me

Last edited by:

Stealth: Jul 2, 2002, 3:00 PM
Quote Reply
Re: [Stealth] If search.cgi ... In reply to
Thanks!

But I don't need/want "query" because I want to list all isHot links ...

Anybody?
Quote Reply
Re: [Payooo] If search.cgi ... In reply to
You need to have the query parameter in order for the search.cgi script to work. Thus, you can leave the param blank.

Like the following:

http://www.yourdomain.com/cgibin/search.cgi?query=&isHot=Yes

got it?
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] If search.cgi ... In reply to
No, you don't need the query parameter in order for the search.cgi script to work ...

Try with .../search.cgi?ID=1 (or some other existing link ID)

or any other allowed FIELDNAME



Setup > Search Options > and then look at the bottom of the page ...

"By default, users can search on any field in your Links table by going to search.cgi?FIELDNAME=SEARCHTERM. If you have fields you don't want users to search on, you can list them here (comma separated list), and the search.cgi will ignore them."

Thanks Wink
Quote Reply
Re: [Payooo] If search.cgi ... In reply to
Well, mr. know it all, then you should already know the answer, which is to replace the ID=1 with isHot=Yes...it should work in theory.

Best of luck finding an answer! Have a great day! WinkSmile
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] If search.cgi ... In reply to
In Reply To:
mr. know it all


Wink Am NOT!



"it should work in theory."

Well, it's working already (Reread my first post)

I want to display additional info for search.cgi?isHot=Yes and DIFFERENT info for search.cgi?isSOMETHINGELSE=Yes ...

I know how to do this with <%query%> tag but the problem is that I can't include something depending on a field ...

Thanks!Laugh