Tags:
create new tag
, view all tags
The problem is that the list of webs shown in the advanced search drop down includes webs where the NOSEARCHALL variable is set to "on". I reckon that this is confusing - and propose simply removing such webs from the drop down selector.

Sooo...please can we add a new wiki variable to the core:

Proposed change to TWiki.pm...


handleInternalTags

	 $_[0] =~ s/%WIKIWEBSEARCHSELECTOR%/&handleSearchSelector/geo;

# =========================
sub handleSearchSelector
{	
	 my @allWebs = ();
	 my $selector = "";
	 my $web = "";
	 @allWebs = &TWiki::Store::getSubWebs();
	 foreach $web ( @allWebs ) 
	 {
		  if( ! &TWiki::Prefs::getPreferencesFlag( "NOSEARCHALL", $web ) ) {
				$selector .= "\n";
		  }
	 }
	 return $selector;
}


-- SteveRoe - 13 Jul 2001

This has been solved in the latest TWikiAlphaRelease and TWikiBetaRelease with the %WEBLIST{"format"}% variable, i.e. %WEBLIST{"<option>$name</option>"}%. Webs with NOSEARCHALL variable set to "on" are excluded. Check out the details in TWikiVariables.

-- PeterThoeny - 15 Jul 2001

Topic revision: r2 - 2001-07-15 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.