[Mediawiki-l] Changing Default Search Parameters

Adam Meyer meyer7 at mindspring.com
Thu Aug 2 15:46:43 UTC 2007


in includes/DefaultSettings.php

search for
NS_MAIN           => true,

should look like

$wgNamespacesToBeSearchedDefault = array(
	NS_MAIN           => true,

add this right under it.

NS_CATEGORY		  => true

-Adam

> Hello Mediawikians,
>
> We are interested on globally changing the search parameters to
> include
> Categories.  I found an article in the archives, but this dates
> back to
> 2004:
> http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2004-December/
> 00274
> 5.html
>
> In the article it mentions having to change the database to
> override the
> users settings.  Does anyone know if there is a different/better
> way of
> accomplishing our goal?
>
> Thanks,
>
> John Getzke
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list