[Mediawiki-l] Re: Default search? Adding namespaces to it
Josh
joshua.l.bass at lmco.com
Sat Sep 17 13:54:15 UTC 2005
Jamie Bliss <astronouth7303 at ...> writes:
>
>
> $wgNamespacesToBeSearchedDefault[NS_MAIN] = true;
> $wgNamespacesToBeSearchedDefault[NS_KEY_TERM] = true;
>
> What you had would clear other namespaces.
>
Seems I needed this:
$wgNamespacesToBeSearchedDefault = array(
NS_MAIN => true,
100 => 1,
102 => 1
);
where 100 and 102 are my custom namespaces. This works now.
More information about the MediaWiki-l
mailing list