Start of topic | Skip to actions
Managing TopicsBrowser-based rename, move, and delete for individual topicsOverviewYou can use browser-based controls to change a topic's name, move it to another TWiki web, or delete it to a hiddenTrash web.
How to Rename/Move/Delete a Topic
Deleted Topics: How to Clear the TrashDeleted topics are moved to a specialTrash web - they are NOT physically erased from the server. All webs share Trash - in case of a name conflict with a topic already Trash , the user is alerted and asked to choose a new name.
The Trash web should be be cleared periodically, by archiving (saving) the text and RCS files if required (recommended), then deleting them from the Trash directory.
Redirecting from an Old TopicYou can use TWikiMetaData to place a command in the WebTopicViewTemplate and WebTopicNonWikiTemplate that will indicate that a topic has been moved by searching for the tag %META:TOPICMOVED{...}%. Customize something like this:%<nop>METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}% How Rename/Move Works
How Referring Topics Are FoundFirst, matching topics in the current web are listed - matches are totopic . Next, all webs (including the current one) are listed that match web.topic . All webs will be searched during rename, even if NOSEARCHALL is defined on a web, though access permissions will of course be honoured.
Changed references are kept are as short as possible, ex: topic is used in preference to web.topic .
Effect of User Access SettingsUser permissions affect the Rename function in various ways. To rename a topic, you need bothALLOWTOPICCHANGE and ALLOWTOPICRENAME permission for that topic. To alter referring topics, you need change permission. See TWikiAccessControl for information on setting up access permissions.
Special ConsiderationsConsider carefully whether to make browser-based Rename/Move/Delete widely available, or to restrict it to an administrator/moderator group. Allowing all users to easily manipulate topics can be extremely useful in refactoring a busy web or site. However, there are at least two significant potential drawbacks to take into account:
Known IssuesRename/Move is fairly complicated due to the dynamic generation of links. Ideally, it would be possible to run the required part of rendering in a way that would allow identification of the text to be changed. Unfortunately, these hooks don't exist in TWiki at present. Instead, %SEARCH% is used with a special template to show the text to be changed, and the selected topics are then altered. One drawback is thatsearch can show matches that will not be updated due to case differences. Other mismatches with actual rendered output are also possible as the approaches are so different.
The following shows some limitations of square bracket processing.
Related Topics: UserDocumentationCategory, AdminDocumentationCategory[[Old Topic]] => [[NewTopic][Old Topic]] [[old topic]] => [[NewTopic][old topic]] [[old t opic]] => not changed [[OldTopic]] => [[NewTopic]] |