====== Pagemove plugin ======
---- plugin ----
description: Move and rename pages whilst maintaining the links
author : Gary Owen
email : gary_owen@bigfoot.com
type : admin
lastupdate : 2007-07-22
compatible :
depends :
conflicts :
similar :
tags : rename, relocate, redirect
----
[[http://www.isection.co.uk|Details and Download]]
====== Ideas for future development ======
To avoid broken links from external page, create an entry in the ''.changes'' meta file to indicate page has been moved (and where it has moved). So a message can be displayed when someone comes to that page that has moved. also a specific header could be sent to automatically redirect user or bot...
Maybe also add a copy feature...
Use the [[devel:events]] system to play nice with other plugins that use events.
> Actually the only problem was that deleting the old page was not signaling IO_WIKIPAGE_WRITE. Change line 218 of ''admin.php'' from:
if (@file_exists(wikiFN($opts['new_id']))) @unlink(wikiFN($ID));
to:
if (@file_exists(wikiFN($opts['new_id']))) saveWikiText($ID, '', 'Deleted by PageMove plugin');