Hi,
I added some additinal Namespaces to my wiki
$wgExtraNamespaces = array(100 => "Test1", 101 => "Test1_Talk" );
and tried to add these namespaces to the default search.
But neither
$wgNamespacesToBeSearchedDefault = array(
-1 => false,
NS_MAIN => true,
NS_USER => false,
NS_USER_TALK => false,
NS_PROJECT_TALK => false,
NS_IMAGE_TALK => false,
NS_IMAGE_TALK => false,
NS_TEMPLATE_TALK => false,
NS_HELP_TALK => false,
NS_CATEGORY_TALK => false,
100 => true,
101 => true );
nor
$wgNamespacesToBeSearchedDefault = array(
-1 => false,
NS_MAIN => true,
NS_USER => false,
NS_USER_TALK => false,
NS_PROJECT_TALK => false,
NS_IMAGE_TALK => false,
NS_IMAGE_TALK => false,
NS_TEMPLATE_TALK => false,
NS_HELP_TALK => false,
NS_CATEGORY_TALK => false,
Test1 => true,
Test1_Talk => true );
works.
Does anybody has a tip what is going wrong?
Regards
Albert Cremer
a. cremer wrote:
Hi, I added some additinal Namespaces to my wiki <...> and tried to add these namespaces to the default search. But neither $wgNamespacesToBeSearchedDefault = array( <...> nor $wgNamespacesToBeSearchedDefault = array( <...> works.
Does anybody has a tip what is going wrong?
What exactly doesn't work?
"NamespacesToBeSearchedDefault" is effective only for *new users* (when registering a new user you get these namespaces checked by default in the user settings).
Did you possibly expect existing users to get these settings too?
Regards,
// Rolf Lampa
Yes, that is right. I would have liked it to be checked for existing users as well. Is there a chance to do so?
Regards A. Cremer
"Rolf Lampa" rolf.lampa@rilnet.com schrieb im Newsbeitrag news:45BFB877.2050305@rilnet.com...
a. cremer wrote:
Hi, I added some additinal Namespaces to my wiki <...> and tried to add these namespaces to the default search. But neither $wgNamespacesToBeSearchedDefault = array( <...> nor $wgNamespacesToBeSearchedDefault = array( <...> works.
Does anybody has a tip what is going wrong?
What exactly doesn't work?
"NamespacesToBeSearchedDefault" is effective only for *new users* (when registering a new user you get these namespaces checked by default in the user settings).
Did you possibly expect existing users to get these settings too?
Regards,
// Rolf Lampa
a. cremer wrote:
"Rolf Lampa" rolf.lampa@rilnet.com schrieb im
a. cremer wrote:
Hi, I added some additinal Namespaces to my wiki <...> and tried to add these namespaces to the default search. but <snip> Does anybody has a tip what is going wrong?
What exactly doesn't work?
"NamespacesToBeSearchedDefault" is effective only for *new users* (when registering a new user you get these namespaces checked by default in the user settings).
Did you possibly expect existing users to get these settings too?
Yes, that is right. I would have liked it to be checked for existing users as well.
Is there a chance to do so?
Hm. Not that I know, but perhaps someone else knows better.
// Rolf Lampa
mediawiki-l@lists.wikimedia.org