I want to migrate from Mediawiki. There are many forum posts on integrating both, but I want to migrate fully to Drupal.

Can anybody help me with how? All I want to transfer are the articles themselves - I do not want the Talk pages or users or anything.

I would much prefer to transfer the articles into the Book section of Drupal - would this be easy?

Comments

sooeydoo’s picture

Has no one migrated from Mediawiki before?

Even so, can anyone help me?

saml’s picture

Hi!

I would suggest trying something like this:

Exporting your articles in XML-format ...

- The XML dump is created by running the file dumpBackup.php via php.exe in the command line. The
command could look something like this in windows:
C:\php\php.exe C:\htdocs\wiki\maintenance\dumpBackup.php --current --quiet > filename.xml

...convert to another XML-format (that which is used of Import/Export API, see next step)...

- This can be done in different ways, depending on how much articles you have (that is how big the XML-dump will be). If it is not too big you could create an XSLT stylesheet that converts it (which is rather easy!). Otherwise you might have to make or find find some php-script or other software that can convert large XML-files.

...and then using Import/Export API to import them.

- In order to get to know what this format looks like you could do a test export of some book comment from your Drupal site.

Sincerely,
Samuel Lampa
Drupal Theme design

rovo’s picture

Hi Samuel,

Just wandering if you recommend any particular XML converting software. Do you know which XML format the mediawiki xml would need to be converted to?

Thank You
Robert

punintended’s picture

Was there ever a solution to this? I have exactly the same issue - a lab needing better access control.

someoneNeedingHelp’s picture

Ok so here is my situation....

Currently I have an extensive Mediawiki setup for my lab, but we need better permission access for the pages. Since some pages can be public and others can only be viewed by those in the lab we need a system of permissions which drupal has. Therefore I wanted to somehow import all of my mediawiki pages into drupal or refer to the mediawiki pages with some kind of permission access in place. Any good suggestions on how to do this????

saml’s picture

I've actually been looking for such a solution for years, but haven't really found any... other than the hack that I described here: http://groups.drupal.org/node/1537#comment-8080

Best Regards

jmlane@drupal.org’s picture

What about the opposite of this? What if I'd like to take my Drupal nodes, export them, and import them to Mediawiki?

Currently we are using a few modules to half-hazardly get Wiki node types and Mediawiki input type filters, but this doesn't have all the features or ease of use that Mediawiki does. It is fairly buggy to be honest.

Any ideas on a easy way to do this?