create new tag
, view all tags
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


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" />

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

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formattmpl searchpopup.tmpl r3 r2 r1 manage 1.7 K 2002-10-28 - 12:34 EstebanManchado Popup mode template
Unknown file formattmpl searchsidebar.tmpl r2 r1 manage 1.4 K 2002-10-28 - 12:34 EstebanManchado Opera/Mozilla Sidebar template
Edit | Attach | Watch | Print version | History: r17 < r16 < r15 < r14 < r13 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r17 - 2003-06-14 - EstebanManchado
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.