[Mediawiki-l] Custom Namespace hidden from search
Sal Quintanilla
salquint at gmail.com
Tue Dec 6 00:18:36 UTC 2011
Nevermind, I jumped the gun on that one. Not all of the options are listed
in under $wgDefaultUserOptions. In my case, to hide the ability to search
all namespaces or select namespaces to search in, this did the job:
$wgHiddenPrefs = array
(
'searcheverything',
'searchnamespaces'
);
Hope that helps someone else too.
Regards,
Sal
-----Original Message-----
From: Sal Quintanilla [mailto:salquint at gmail.com]
Sent: Monday, December 05, 2011 4:07 PM
To: 'MediaWiki announcements and site admin list'
Subject: RE: [Mediawiki-l] Custom Namespace hidden from search
Actually I take back "perfect" a little. $wgHiddenPrefs seems to be the
right thing to use, but there's no documented support for hiding the ability
to hide the "Advanced options" box under "Search options". Looking at
includes/Preferences.php doesn't show any code that would respond to
$wgHiddenPrefs in that way either. Am I stuck editing Preferences.php?
-----Original Message-----
From: Sal Quintanilla [mailto:salquint at gmail.com]
Sent: Thursday, December 01, 2011 7:02 PM
To: 'MediaWiki announcements and site admin list'; 'salquint at gmail.com'
Subject: RE: [Mediawiki-l] Custom Namespace hidden from search
Perfect, thanks Dan
-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Daniel Barrett
Sent: Thursday, December 01, 2011 6:19 PM
To: salquint at gmail.com; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Custom Namespace hidden from search
Add some JavaScript to MediaWiki:Common.js that hides the items on
Special:Preferences that you don't want shown.
If you have a later Mediawiki, you can use the $wgHiddenPrefs array to hide
specific areas of Special:Preferences.
DanB
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list