You are here: Foswiki>System Web>Category>UserDocumentationCategory>ManagingTopics (2024-12-23, UnknownUser)Edit Attach
Browser-based rename, move, copy, and delete for individual topics
On this page:
You can use browser-based controls to change a name of a topic, move it to another web or delete it to a hidden Trash
web.
[More topic actions]
link (normally located in an action toolbar at the top or bottom of page) on the topic to be changed. Then, in the new screen, click [Rename or move topic...]
or [Delete topic...]
. You can now rename and/or move in one operation: You'll be warned if any of the topics to be affected are locked (being edited), or if there is a name conflict.
[Rename]
: the topic will be renamed and links to the topic updated as requested. [Rename]
. There is a Put back feature that allows you to undo a rename/move/delete
action - an instruction line and an undo link will appear under the [Rename or move topic]
section of the [More topic actions]
page. This allows you to revert from the last modification only.
Foswiki deletes topics by moving them to the hidden Trash
web.
[More actions]
link (normally located in an action toolbar at the top or bottom of page) on the topic to be changed. Then, in the new screen, click [Delete topic...]
. That will bring up the "rename" form prepopulated with the Trash
web and a suitable topic name. [Delete]
: the topic will be renamed and moved to the Trash
web as requested. [More actions]
link (normally located in an action toolbar at the top or bottom of page) on the topic to be changed. Web.TopicName
). [Copy topic]
button. You will be directed to an edit page for the newly-created topic. You can save the new copy immediately, or make some changes and then save it. Deleted topics are moved to a special Trash
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.
See your chosen store implementations' topic for additional details related to keeping your trash clean.
The 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.
<pre>
and <verbatim>
are honoured - no changes are made to text within these areas. <pre>
and <verbatim>
blocks 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
. 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, for example: topic
is used in preference to web.topic
.
User permissions affect the 'rename' functions in various ways. To rename a topic, you need all of VIEW
, CHANGE
and RENAME
access to that topic. To alter referring topics, you need CHANGE
access. See AccessControl for information on setting up access permissions.
Consider 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:
Ultimately, the size, objectives, and policies of your site, the real-world behavior of your user group, and most importantly, the initial Foswiki site management leadership, will determine the most effective implementation of this feature, and the success of the site overall.
Rename/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 that search
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]]
The previous version of this documented recommended copy/paste from the raw view of a prior version to revert. This is not recommended as it fails to revert changes to the topic metadata. Note howver that no method actually reverts attachments as they are stored separately from the topics.
Foswiki's revision control saves all topic changes. To view earlier versions of a topic, click on the History
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:
History
view, find the revision number you want to restore. [More topic actions]
page, [Restore topic]
section. [Restore]
. This action creates a new revision from the specified version. Caution: This action does not "rewrite history". A new revision is created, and the rollback can still be reverted. If the is some highly sensitive data that must be removed from the history, this operation will not remove the information. In order to completely expunge data from history, there are several possible options:
cmd=delRev
option of the edit script to permanently remove the last revision of a topic. topic.txt,v
rcs file from the file system after removing the offending information from the topic. Related Topics: UserDocumentationCategory, AdminDocumentationCategory
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback