Neat. I may try that later. For now, I think I'm on to something with CSS, namely:
#mw-search-ns3001 { display:none; visibility:hidden; }
Which successfully removes the input checkbox, but I'm still struggling to figure out the css code for the input's label where the html is:
<label for="mw-search-ns4401">TWAPB talk</label>
I've never encountered the "label for" html tag.
-Rich
-----Original Message----- From: MediaWiki-l [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Brian Wolff Sent: Wednesday, July 11, 2018 2:27 PM To: MediaWiki announcements and site admin list Subject: Re: [MediaWiki-l] hide talk namespaces from "Special:Search" Advanced
Try something like (untested):
$wgHooks['SearchableNamespaces'][] = function (&$ns) { unset( $ns[NS_TALK] ); }
-- Brian
On Wed, Jul 11, 2018 at 6:18 PM, Evans, Richard K. (GRC-H000) richard.k.evans@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
_______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l