As it is, all of the custom namespaces would be added to the Default namespace. I wasn't sure if it was really possible to add your own in MediaWiki. I have moved this to a feature request.
In the mean time, if you really want to perform your import, you will have to modify the file vault/special_import_mediawiki.php. Find:
Code:
if (!$handled)
{
$page['namespaceid'] = $this->registry->options['ces_default_forumid'];
}
Before this you should add your own code as follows:
Where MEDIAWIKI_CUSTOM_NAMESPACEID is the namespace ID according to MediaWiki, and VAULTWIKI_CUSTOM_NAMESPACEID is the namespace ID of the namespace you created in VaultWiki to move it to.
As it is, all of the custom namespaces would be added to the Default namespace. I wasn't sure if it was really possible to add your own in MediaWiki. I have moved this to a feature request.
In the mean time, if you really want to perform your import, you will have to modify the file vault/special_import_mediawiki.php. Find:
Code:
if (!$handled)
{
$page['namespaceid'] = $this->registry->options['ces_default_forumid'];
}
Before this you should add your own code as follows:
Where MEDIAWIKI_CUSTOM_NAMESPACEID is the namespace ID according to MediaWiki, and VAULTWIKI_CUSTOM_NAMESPACEID is the namespace ID of the namespace you created in VaultWiki to move it to.
If i had more than one special namespace in mediawiki, then i use the modification for each namespace?
Yes. If they have talk spaces, you'll want to update $talk_spaces (array MEDIAWIKI_TALKSPACEID => MEDIAWIKI_TALKSPACEID) and $talking (array MEDIAWIKI_TALKSPACEID => VAULTWIKI_NAMESPACEID).
This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.