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, );
----------------------------------------------
From: Benjamin Lees <emufarmers@gmail.commailto:emufarmers@gmail.com>
My guess is that you didn't define the namespace constant NS_DBA.
-------------------------------------------------
On Thu, Mar 8, 2012 at 12:10 PM, Shaffer, Kurt <Kurt_Shaffer@steris.commailto:Kurt_Shaffer@steris.com> wrote:
Hi all,
New to the list so if asked please excuse me.
I am trying to get the default search to search a new Namespace, I've added it to the LocalSettings.php file as shown:
#Set default searching
$wgNamespacesToBeSearchedDefault = array(
? ? ? ?NS_MAIN => ? ? ? ? ? true,
? ? ? ?NS_FILE => ? ? ? ? ? true,
? ? ? ?NS_DBA => ? ? ? ? ? ?true,
);
When not logged in only main and file are checked and searched. ?I did a modification to the database as recommended in some documentation adding the namespace to all users options. ?When a user is logged in it searches the new namespace by default.
How can I get it to include the namespace for searches when not logged in?
Thankx.
Kurt