wazum/page-deletion-guard
Composer 安装命令:
composer require wazum/page-deletion-guard
包简介
Prevents deletion of pages with children in TYPO3 backend
README 文档
README
A TYPO3 extension that prevents accidental deletion of pages with child pages in the backend. This extension restores the safety guard that was removed in TYPO3 v11 (Breaking Change #92560).
Warning
TYPO3 core developers recommend using the Recycler to restore accidentally deleted pages. However, since TYPO3 does not use database transactions for page operations, any timeout or error during recursive deletion or restoration can leave your page tree in an inconsistent, partially deleted state. The Recycler cannot reliably fix such broken structures. This extension prevents these scenarios by blocking risky deletions before they even happen!
Quick Start
composer require wazum/page-deletion-guard
The extension works immediately after installation with sensible defaults. Administrators can bypass the guard, regular editors cannot delete pages with children.
The Problem
Since TYPO3 v11, backend editors can delete entire page trees with a single click. This increases the risk of:
- Accidental deletion of important page structures
- Loss of content without warning
- No built-in protection against recursive deletion
Features
- Prevents accidental deletion of pages with child pages
- Shows warning modal with exact child page count before deletion
- Administrators can bypass the protection when needed
- Works in all backend modules (page tree, list module, etc.)
- Configurable per backend user group
- Logs all blocked deletion attempts
Installation
composer require wazum/page-deletion-guard
The extension activates automatically with these defaults:
- Protection enabled
- Admin bypass allowed
- Regular editors cannot delete pages with children
No additional configuration required unless you want to customize the behavior.
Configuration
Configure the extension via Admin Tools → Settings → Extension Configuration → page_deletion_guard:
Available Options
-
enabled(boolean, default:true) Enable or disable the deletion guard entirely. -
allowAdminBypass(boolean, default:true) Allow administrators to delete pages with children. When disabled, even admins must delete child pages first. -
bypassBackendGroups(string, default: empty) Comma-separated list of backend user group IDs that can bypass the guard. Example:5,10,15 -
respectWorkspaces(boolean, default:true) When enabled, workspace restrictions are applied to child page queries. Disable to count all children regardless of workspace.
License
GNU General Public License version 2 or later (GPL-2.0-or-later)
Author
Wolfgang Klinger wolfgang@wazum.com
wazum/page-deletion-guard 适用场景与选型建议
wazum/page-deletion-guard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.27k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 10 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wazum/page-deletion-guard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wazum/page-deletion-guard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-10-21