DokuWiki PageMove Plugin Test Environment

This website currently exists as a test environment for my PageMove plugin for DokuWiki. It is currently running DokuWiki Version 2006-03-09

If you want to try the plugin in your own wiki, see the installation section. Please be aware that this plugin is still in Beta testing and you should test it thoroughly on a backup of your installation before installing it into a live system.

Plugin Features

As the name suggests this plugin is designed for moving and renaming pages within your Wiki whilst maintaining the integrity of links to and from the page.

In full you can:

  • Rename a page.
  • Move a page to an existing namspace.
  • Move a page to a new namespace.
  • A combination of the above.

During a move/rename the following actions are performed.

  • Pages that contain links to the document (backlinks) are edited to point to the new location.
  • Links on page to other documents (forwardlinks) are edited to suit the new location.
  • Links to images and other media are edited to suit the new location. The images are not moved to the new namespace.
  • All metadata (change files, subscriptions, indexes) and old revisions are moved to the new namespace.
  • The cache is cleared so that search and backlink indexs are rebuilt.
  • The page is displayed at its new location.

To ensure the integrity of the system the following checks are made before anything is changed.

  • You are not allowed to move or rename the start page.
  • The page and all backlinks must not be locked.
  • You need the necessary rights to edit the page and all backlinks.
  • You need the necessary rights to create a document in the target namespace.
  • You cannot move the document to a namespace where a document with the same name already exists.

As the plugin can currently only be run with superuser privileges, rights are not really an issue. I have left the checks in in case this changes in the future.

Limitations

This initial release was built from code built for an earlier release of DokuWiki that did not support searching of CamelCase links or ignore links in code blocks. Therefore these limitations also apply to the plugin. Hopefully, this functionality can be added in a future release.

Installation

Automatic: If you have a Plugin Management plugin installed simply type or paste

http://www.isection.co.uk/lib/exe/fetch.php?id=start&cache=cache&media=pagemove_20070722.zip

in the appropriate textbox and hit "Download".

Manual: Firstly download the 0.9.15a version package here (Updated 22/07/2007). Then extract the "pagemove" directory into your ..www\dokuwiki\lib\plugins directory.

If you've done everything right in the Admin section of your wiki you'll see "Page Move/Rename..." or "Page Move/Rename... (The Start page cannot be moved or renamed)" or "Page Move/Rename... (This topic does not exist yet)" if the page you're trying to move/rename doesn't exist. In the latter case try another page!

Old Revisions

Playground

If you would like to test the plugin here, then you will need to create a new user account from the login page. After that feel free to move any page on the site and if you do encounter a problem leave some feedback with as much detail as you can.

Contribute

Despite my best efforts, I have totally failed to learn a second language, so I can only provide this plugin in English. If you would like to help remedy this then you can copy and edit the lang.php and pagemove.txt files in the language section.

Thanks go out to:

  • aivars - Latviešu (Latvian)
  • jjakob - Slovensko (Slovenian)
  • tombcrow - Chinese
  • koko - Nederland (Dutch).
  • nodens - Français (French).
  • S'Adm*n - Русский (Russian)
  • picsar - Deutsch (German)
  • willygroup - Italiano (Italin)
  • wkazimierczak - Polski (Polish)
  • borland - Česky (Czech)
  • rsquartini - Español (Spanish)

Revisions

  • 0.9.15 (20/07/2007)
    • Added Gabriel Birke patch to fix metadata and history not being moved when pages are moveed to a namespace that doesn't exist yet.
  • 0.9.14 (12/07/2007)
    • Fixed problem with root to root links being corrupted during move to namespace.
    • Italian language support added
  • 0.9.13 - Development version.
  • 0.9.12 (21/02/2007)
    • Changelog is now moved with page on DokuWiki versions since 2006-11-06. This fixes a bug where previous page revisions were lost.
  • 0.9.11 (12/02/2007)
    • Cleaning of text on windows servers added to stop introduction of extra newlines.
  • 0.9.10 (15/01/2007)
    • Fixes to Link Regex Pattern and German Translation courtesy of Matthias Watermann.
  • 0.9.9 (24/11/2006)
    • Quick fix for users of the {{tag}} plugin. A more complete solution to come latter.
  • 0.9.8 (02/08/2006)
    • Cleaner user interface added
    • Support for moving page metadata added.
    • Fixed bug with deleting page at old location when moving to a previously non-existing namespace.
  • 0.9.7
    • Fixed bug with links to email addresses
  • 0.9.6
    • Fixed bug with internal link handling
  • 0.9.5
    • Old revisions are moved to new namespace
    • Subcriptions are updated
    • Behaviour has been changed so that the plugin is visible for pages that don't exist, but with a suitable message.
  • 0.9.4
    • Russian language support added
    • German language support added
    • Langauge support added to Submit button (Only English and Russian at the moment).
  • 0.9.3
    • French language support added
  • 0.9.2
    • Fixed updating of backlinks containing spaces and special characters.
  • 0.9.1
    • Dutch language support added.
    • Fixed page change text entries.
  • 0.9.0
    • Initial beta version.

To Do

Two young children are keeping me busy, so development is going to be slow for a while. I will keep monitoring your comments and do as much as I can during my lunch break.

  • Update for latest release candidate.
  • Add support for default namespace start page behaviour (globalstart).
  • Remove editing of links in code blocks (optional switch).
  • Move media to new namespace, if its not used anywhere else.
  • Refactor the code or at least clean it up.
  • Move whole namespaces
  • CamelCase Support - Will not be added unless requested.

Bugs & Feedback

Fixed Bugs

  • Page not deleted from previous location when moved to a previously non-existing namespace. Fixed 28/06/06
  • old revisions are not moved Fixed 04/04/06
  • subcriptions are not updated Fixed 04/04/06
  • Changes email like this: name@mail.comnamespace:name_mail.com Fixed 28/04/06

Sample links

 
start.txt · Last modified: 2008/03/14 08:39 by gowen
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki