|
|
|
Managing TopicsBrowser-based rename, move, copy, and delete for individual topicsOn this page:
OverviewYou can use browser-based controls to change a name of a topic, move it to another web or delete it to a hiddenTrash web.
How to rename, move or delete a topic
How to copy 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 the same Trash - in case of a name conflict with a topic already existing in the Trash web, 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 topicThe default "new topic" screen tells the user when a topic being created used to exist, but was moved. So if anyone follows a link to a moved topic, they will be able to click through to the new name.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 as short as possible, ex: topic is used in preference to web.topic.
Effect of user access settingsUser permissions affect the 'rename' functions in various ways. To rename a topic, you need all ofVIEW, CHANGE and RENAME access to that topic. To alter referring topics, you need CHANGE access. See AccessControl 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 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.
[[Old Topic]] => [[NewTopic][Old Topic]] [[old topic]] => [[NewTopic][old topic]] [[old t opic]] => not changed [[OldTopic]] => [[NewTopic]] Reviewing and RevertingFoswiki's revision control saves all topic changes. To view earlier versions of a topic, click on theHistory link in topic actions. If you would like to revert to an earlier version or reclaim part of an earlier version, just copy from the old topic revision to the current topic revision as follows:
Related Topics: UserDocumentationCategory, AdminDocumentationCategory r1 - 09 Jan 2009 - 12:00:00 - ProjectContributor
Copyright © by the contributing authors. All material on this site is the property of the contributing authors. Ideas, requests, problems regarding Wiki? Send feedback |