• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I just created a "onebox" search box. What I did was just four lines of perl code in twiki/bin/search and changing the search box form.

  • added a new paramater to searching "dogobox" if it is non-empty, then the normal search cgi will first check to see if there is a pagename which matches the search, and go there. If not, it performs a normal search.
  • changed the 'go box' to point at the search cgi, and added the hidden paramater "dogobox"="yes"
  • I've attached my modified twiki/bin/search cgi, it's just four lines of code near the bottom, search

 my $doGoBox       = $query->param( "dogobox" ) || "";

# emulate "go" behavior during a search 

if (($doGoBox ne "") && &TWiki::Store::topicExists( $webName, $search ) )  {
 TWiki::redirect( $query, &TWiki::getViewUrl( "", $search ) ); 

-- DavidJeske - 07 Jun 2003

Scheduled for Dakar, big usability enhancement. The spec needs to be finalized...

-- PeterThoeny - 04 Aug 2004

Postponed to EdinburghRelease as Dakar is now "security and perfomance only" changes.

-- MattWilkie - 06 Dec 2004

If the change is as simple as DavidJeske makes out above, perhaps this should be reconsidered for Dakar?

-- AntonAylward - 28 Jun 2005

sure, i'll be happy to apply any forthcoming patches...

-- WillNorris - 29 Jun 2005

I suggest to defer this to Edinburgh, see reason in TWiki:Codev.GoIsSearch (my note dated 13 Oct 2005)

-- PTh

that's fine with me... i've attached a patch i worked on for this for completness.


Seeing the discussion on Codev, I have created a temporary solution for the Dakar release, to have both a Go box and a Search box, in the left bar. TWiki masters can decide to leave one of these out. SVN 7072.


Undeferred, post Dakar CC

Aged to death.

Besides I do not even agree. If OFTEN want to search for topics in which a topic name is used. And then I want those in the the search result. Not just jump to this page.

I think we have a pretty fine solution right now.

I dare say No action.

And if someone wants it anyway please raise feature proposal first.

-- TWiki:Main.KennethLavrsen - 02 Aug 2008

Summary GoIsSearch implementation overlooked
ReportedBy MartinCleaver
SVN Range

AppliesTo Engine

Priority Low
CurrentState No Action Required

TargetRelease n/a
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff GotoIsSearch.diff r2 r1 manage 3.0 K 2005-10-13 - 07:37 WillNorris  
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2008-08-02 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback