MoveCopyDelGroup
Questions answered by this recipe
How to move, copy or delete an entire PmWiki group.
Description
MoveCopyDelGroup provides a simple form and simple actions to copy, move, or delete an entire PmWiki group.
Copy duplicates the group, Move renames the group, and Delete deletes the entire group.
Because these are big operations in the wiki we require admin permissions to execute them.
To use, once installed, add ?action=groupcopy or ?action=groupmove or ?action=groupdelete to a page's location (or use a PageActions link, if you've defined one) to get a simple form, fill in the target name and press a button ("Copy" or "Move" or '"Delete"). MoveCopyDelGroup will verify that the source group exists and that the target group doesn't already exist, and that you have the required admin permissions, then moves or copies, or deletes the group. All uploads and the pages with their history are preserved. The move/copy will not be recorded in the history of the pages.
Assumes uploads are grouped per PmWiki group into one directory.
Installation
Installation
- Download movecopydelgroup.phpΔ to your cookbook directory
- Add the following to your config file:
if (($action=='groupcopy') || ($action=='groupmove') || ($action=='groupdelete')) include_once("$FarmD/cookbook/movecopydelgroup.php");
- Optionally, add something like the following to your
Site.PageActions
page:(:if auth admin:) * %item rel=nofollow class=groupmove% [[{*$FullName}?action=groupmove | $[GroupMove] ]] * %item rel=nofollow class=groupcopy% [[{*$FullName}?action=groupcopy| $[GroupCopy] ]] * %item rel=nofollow class=groupdelete% [[{*$FullName}?action=groupdelete | $[GroupDelete] ]] (:ifend:)
Notes
Assumes uploads are grouped per pmwiki group into one directory.
Release notes
- 2023-04-20Δ: first release
See also
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.