Wiki source code of Deletion Wizard for a Page
Last modified by Eleni Cojocariu on 2026/03/19 08:10
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | When [[deleting a Page>>xwiki:documentation.xs.user.base.page.refactoring-operations-pages.delete-page.WebHome]], the deletion wizard helps you manage several aspects of the process: | ||
| 2 | |||
| 3 | {{image reference="deletion-wizard.png" size="large" alt="The options of the deletion wizard"/}} | ||
| 4 | |||
| 5 | |=Option|=Description|=Image | ||
| 6 | |"Affected children"|Choose whether to delete the [[children Pages>>xwiki:documentation.xs.user.base.page.nested-pages.relations.WebHome]] along with the current one. If selected, all the Pages will be deleted together as a batch.|{{image reference="affected-children.png" size="large" alt="The Affected children dropdown extended showing the LiveData with the children pages"/}} | ||
| 7 | |"New target"|Select a Page from the dropdown list, to update [[backlinks>>documentation.xs.user.base.page.linking-references.WebHome||anchor="HBacklinks"]]. [[Hidden Pages>>xwiki:documentation.xs.user.base.page.view-page.hide-page.hidden-pages.WebHome]] are not displayed in the dropdown list. If you also deleted children Pages of the Page, don't select a children Page as the new target.|{{image reference="new-target.png" size="medium" alt="The dropdown of the New target with pages available to become the new target page"/}} | ||
| 8 | |[["Update links">>||anchor="HWhycan27tIseethe22Updatelinks22checkbox3F"]]|This option controls whether [[links are updated automatically>>documentation.xs.user.base.page.linking-references.updating-links.WebHome]]. The deleted Page’s [[backlinks>>documentation.xs.user.base.page.linking-references.WebHome||anchor="HBacklinks"]] will then be redirected to this new target Page. The option becomes available only after choosing a new target Page.| | ||
| 9 | |"Create an automatic redirect"|[[Adds an Object>>xwiki:documentation.xs.user.base.page.edit-page.edit-object-editor.attach-remove-objects.WebHome]] of type ##XWiki.RedirectClass## to the deleted Page, automatically redirecting visitors to the new target. This is useful for preserving access when there are [[external links>>documentation.xs.user.base.page.linking-references.WebHome||anchor="HExternalLinks"]] pointing to the original Page or its child Pages. Without the redirect, those external links would break after the rename.| |