arrbug
Hello all:
Here is the situation. One program at my work (our english school) started using a wiki. Now all the other programs at our office, having seen how well it works, want in on the action. Here's the issue. We'd like to move all content on the wiki to a new namespace (i.e. :english). Is there a script or some way to do this without breaking all the links?
A workaround would just be to move all the front-page links to a new "English" page but we'd like all the content in a separate namespace in order to have separate permissions for the folder.
Thank you!
ryan-chappelle
I recall having undergone that ordeal once. Wasn't easy, but I faced no errors or weird situations.
The poor-man's, brute force and more direct approach (in that you can check almost instantly if the process worked) is to simply dump the page files (DOKU_DIR/data/pages) from English Wiki to an "english" subdirectory in the page files directory of General Wiki. So long as the internal links in English Wiki are all relative, you won't experience a "loss of connections".
The bigger issue comes with moving all the media around, as well as probably the revisions (attic) and page information (meta). But the process is overall similar to the above, just with some specific extra care.
After that, you'll need to reindex your entire General wiki, or at least the "new" english namespace, to guarantee that links are found, metainformation processed, tags reparsed, etc. If any of the two installations make use of the data, tag, and other similar plugins, you may experience problems.
The elegant and refined approach is to set up a script that does the work. I don't know of anyone who has written a script to "migrate wiki" or "degrade to namespace" or something like that... sorry.