Tags:
view all tags
%TOC% %STARTINCLUDE% ---## Managing Topics _Browser-based rename, move, and delete for individual topics_ ---+++ Overview Select *Rename/move* when viewing a topic to change its name, move it to another TWiki web, or delete it: 1. *Select* target web if other than the current web - chose ==Trash== to [[#DeleteTopic][delete a topic]] 1. *Enter* the new topic name - default is current name <br> __NOTE:__ You will be warned if there are locks or if there is a name conflict 1. *Select* from the list of links to the topic that will be changed those to OMIT from changes (by default, all referring links will be updated) 1. *Click* on *Rename/Move* to rename/remove topic will be renamed and links to the topic updated as requested. * 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 are found using the the %<nop>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 %<nop>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_. #DeleteTopic ---++++ Deleting a Topic Deleted topics are moved to the =Trash= web - 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. ---+++++ Clearing the Trash __NOTE:__ The =Trash= web should be be cleared periodically, by archiving the contents if required (recommended), then deleting the files from the =Trash= directory. ---+++ Redirecting from an Old Topic You can use TWikiMetaData to place a command in %TWIKIWEB%.WebTopicViewTemplate and %TWIKIWEB%.WebTopicNonWikiTemplate that will show if a topic has moved by searching for the tag %<nop>META:TOPICMOVED{...}%. Customize something like this: <blockquote style="background-color:#f0f0f0"> <verbatim> %<nop>METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}% </verbatim> </blockquote> ---+++ Impact of Topic Access Settings Permissions affect the rename function in various ways. To rename a topic, you need both change and rename permissions. To alter refer4ing topics, you need change permission. See [[TWikiDocumentation#TWiki_Access_Control]] for information on setting up access permissions. ---+++ How Rename/move Works * %<nop>SEARCH% is used with a special template to show text in topics that requires updating to point to the new topic and/or web name. This includes relevent [[TWikiDocumentation#Meta_Data_Definition][<nop>MetaData]] * User chooses which topics will be altered * <PRE> and <VERBATIM> are honoured - no changes are made to text within these areas * Topic is moved (if locks allow) * References are changed (locks and permissions permitting) * Any referring topics that can't be changed due to locks are listed - user can change them at another time. ---+++ Known Limitations *Rename/move* in 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, %<nop>SEARCH% is used with a special template to show the text to be changed, and the selected topics are then altered. One drawback is that =search= can show matches that will not be updated because of case differences. Other mismatches to actual rendered output are also possible as the approaches are so different. The following shows some limitations of square bracket processing. <blockquote style="background-color:#f0f0f0"> <verbatim> [[Old Topic]] => [[NewTopic][Old Topic]] [[old topic]] => [[NewTopic][old topic]] [[old t opic]] => not changed [[OldTopic]] => [[NewTopic]] </verbatim> </blockquote>
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r24
|
r9
<
r8
<
r7
<
r6
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r7 - 2001-09-06
-
MikeMannix
Home
Site map
Sandbox web
TWiki web
XPDays2010 web
XPDays2011 web
XPDays2011SponsoringDemo web
XPDays2012 web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Register User
Edit
Attach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.ManagingTopics
.