[MediaWiki-l] hide talk namespaces from "Special:Search" Advanced

Brian Wolff bawolff at gmail.com
Wed Jul 11 18:27:28 UTC 2018

Try something like (untested):

$wgHooks['SearchableNamespaces'][] = function (&$ns) {
  unset( $ns[NS_TALK] );


On Wed, Jul 11, 2018 at 6:18 PM, Evans, Richard K. (GRC-H000)
<richard.k.evans at nasa.gov> wrote:
> I use Flow (Structured Discussions) on all of my Talk namespaces.
> My understanding is that Flow discussions are not text searchable using the mediawiki search tool.
> Is there a way to eliminate the talk namespaces from the list of namespaces that result when you select "Advanced"  on the "Special:Search" page?
> -Rich
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

More information about the MediaWiki-l mailing list