PhotonSearch is yet another TWiki smart search. It consists of a search
CGI (
photonsearch) and two new search templates for a special popup search and a Mozilla/Opera sidebar.
PLEASE NOTE: See PhotonSkin for the latest version of the script.
Documentation moved to
PhotonSkin as
PhotonSearch has been integrated into it.
--
EstebanManchado - 02 Oct 2002
Comments
I'm initially had trouble figuring out how to get
local to be the default search, so here is what finally worked for me:
<form name="photonsearch" action="%SCRIPTURLPATH%/photonsearch%SCRIPTSUFFIX%/%WEB%" method="post">
Photon Search:
<input type="text" name="topic" size="16" />
<input type="hidden" name="scope" value="local" />
</form>
Note: parameters passed in the above manner override anything the user types in the input box. So with this setup global searches are impossible. Can this behaviour be reversed so that user entered options override form options?
--
MattWilkie - 17,22 Oct 2002
Ooops, sorry about that, it was my fault. The documentation is not correct, it's the
a letter, not the
g :-). BTW, where have you put the scope hidden variable? Perhaps you've put it only in the
view.tmpl file. You have to modify also
search.tmpl. I will write down specific instructions some day and post them right here.
--
EstebanManchado - 23 Oct 2002
Thank you for the correction,
a: does indeed work for global searches.
I put the scope and topic inputs on the %WEBTOPICLIST % in
WebPreferences. This way the defaults can be changed without having to have shell access to the server. This also means you don't have to change every skin to match.
--
MattWilkie - 23 Oct 2002