| Module name |
rename RenameCgiScript |
| Location |
TWIKIROOT/bin/rename |
| Summary |
Functionality to rename a topic |
| Primary Author |
PeterThoeny |
Purpose
To implement everything needed when relocating a topic. This might be as a different name within a web, as the same name to a different web or as a different name in a different web.
Used by
One of:
- This cgi script is invoked by the user when the More | Move/Rename link is followed.
Diagram:
TWiki Modules used
This
CGI script depends on the following TWiki modules for functionality:
External Modules used
This
CGI script also depends on the following external modules
This section lists the methods that can be used by the scripts and by other modules
These do not need to be not documented yet
Please see
CodevDocumentationProject and
CodevDocumentationProjectDev for comments on the format of these pages.
--
MartinCleaver - 23 Jun 2002
There is no %WIKIWORD% directive to implement a rename, this would be needed if this functionality were to be exposed to a
WikiControlLanguage
This is a
FatCgiScript. To rectify, consider the following:
- Move routines that implement the rename to a module in the backend, perhaps StoreDotPm:
- sub findReferringPages (would need passing values rather than the query object)
- sub gotLocks
- sub check (but perhaps better named as okayToRename)
- Leave these in RenameCgiScript:
- newTopicScreen, setVars, moreRefs
--
MartinCleaver - 24 Jun 2002
in the process of doing
DeleteAccount I am going to move some of the functions into
StoreDotPm
--
SvenDowideit - 31 Dec 2003