[Mediawiki-l] Default Search

Jeremy Baron jeremy at tuxmachine.com
Fri Mar 9 18:29:21 UTC 2012


On Fri, Mar 9, 2012 at 08:53, Shaffer, Kurt <Kurt_Shaffer at steris.com> wrote:
> Not sure how to check that.  Here is what is in the LocalSettings.php file:
>
> $wgExtraNamespaces[506] = "DBA";
> $wgExtraNamespaces[507] = "DBA_talk";
> $wgContentNamespaces[] = array( NS_MAIN, NS_TALK, NS_DBA, NS_DBA_talk );
> $wgNamespacesToBeSearchedDefault = array(
>        NS_MAIN =>           true,
>        NS_CATEGORY =>       true,
>        NS_IMAGE =>          true,
>        NS_DBA =>            true,
> );

See the last ~10 lines of this section:
https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces#Creating_a_custom_namespace

-Jeremy



More information about the MediaWiki-l mailing list