From c4edd01eec68062c0e3a74bb0a33f62ad4dae002 Mon Sep 17 00:00:00 2001 From: John Talintyre Date: Wed, 8 Aug 2001 16:56:57 +0000 Subject: none --- TWiki/ManagingTopics.mdwn | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'TWiki') diff --git a/TWiki/ManagingTopics.mdwn b/TWiki/ManagingTopics.mdwn index 996c26ad..d1f79bf9 100644 --- a/TWiki/ManagingTopics.mdwn +++ b/TWiki/ManagingTopics.mdwn @@ -1,4 +1,4 @@ -# Rename/move/delete a topic +## Rename/move/delete a topic Select rename/move when viewing a topic to change its name, do [[DeleteTopic]] or [[MoveTopic]]. @@ -10,24 +10,42 @@ Select rename/move when viewing a topic to change its name, do [[DeleteTopic]] o * If any of the referring pages are locked then they will be listed * You can correct these later by again pressing Rename/Move -## Referring topics +### Referring topics Referring topics are found using the the %SEARCH% variable, see the template searchrenameview.tmpl. First, matching topics in the current Web are listed - matches are to _topic_. Next, all Webs (including the current one) are listed that match _web.topic_. Because %SEARCH% is used, Webs marked in [[WebPreferences]] as NOSEARCHALL will not show up in the search for refernces to the _topic_ being changed. Changed references are kept are as short as possible, i.e. _topic_ is used in preference to _web.topic_. -## Deleting a topic +### Deleting a topic Topics can be _deleted_ by moving them to the Trash Web (this should be added to the default distribution). Note that topics from all Webs go into this, so there could be name clashes, the user is warned of this and asked to choose a new name. When TWiki support sub-webs, these could be created on demand in the Trash Web, which would avoid this name clash problem. It is up to the administrator of a TWiki installation to clean the Trash Web periodically e.g. by archiving to tape of CDROM entries older than 6 months. -## Redirection from old topic +### Redirection from old topic Something like the following can be put in %TWIKIWEB%.WebTopicViewTemplate and %TWIKIWEB%.WebTopicNonWikiTemplate to show if a topic has moved. It does this by searching for the tag %META:TOPICMOVED\{...\}%. ## %METASEARCH\{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "\}% -## Permissions +### Permissions Permissions affect rename in various ways. To rename a topic you need both change and rename permissions. To alter refering topics, you need change permission. See [[TWikiAccessControl]] for information on setting up permissions. + +### Approach + +* %SEARCH% is used with a special template to show the text would be changed + * User chooses which topics +* <PRE> and <verbatim> are honoured +* FIXME - more needed + +### Limitations + +Rename in a Wiki 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 and then altered. Search can show matches that will not be updated e.g. because of case differences. Other mis-matches to 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]] -- cgit v1.2.3