ithilgers/pagetree-permissions-highlight
最新稳定版本:v1.2.1
Composer 安装命令:
composer require ithilgers/pagetree-permissions-highlight
包简介
Highlights pages in the backend page tree where the user has content editing permissions
README 文档
README
Visual highlighting of pages in the TYPO3 backend page tree where the current user has content editing permissions.
Features
- Visual Feedback: Highlights pages with a customizable background color where the user has content editing rights
- Filter Toggle: Dropdown menu item "Editable pages only" in the page tree to filter down to editable pages only, with bridge nodes keeping the tree structure intact
- Localized: Full English and German translations, respects TYPO3 backend language setting
- Permission-Aware: Only shows highlights based on actual user permissions
- Admin-Optimized: Skips highlighting for admin users (who have all permissions anyway)
- Configurable: Customize the highlight color through extension configuration
- Lightweight: Minimal performance impact using TYPO3's event system
Why This Extension?
In large TYPO3 installations with complex permission structures, editors often struggle to identify which pages they can actually edit. This extension provides instant visual feedback in the page tree, making it immediately clear where users have content editing permissions.
Installation
Via Composer (recommended)
composer require ithilgers/pagetree-permissions-highlight
Activation
After installation, activate the extension in the Extension Manager or via CLI:
vendor/bin/typo3 extension:setup
Configuration
The extension can be configured in the Extension Configuration:
- Go to Admin Tools > Settings > Extension Configuration
- Select
pagetree_permissions_highlight - Configure the following options:
| Option | Type | Default | Description |
|---|---|---|---|
highlightColor |
string | rgba(0, 255, 0, 0.1) |
Background color for pages where the user has content editing permissions. Accepts any valid CSS color value (hex, rgb, rgba, named colors). |
Example Configuration
// config/system/settings.php 'EXTENSIONS' => [ 'pagetree_permissions_highlight' => [ 'highlightColor' => 'rgba(255, 215, 0, 0.15)', // Golden highlight ], ],
Usage
Once installed and activated, the extension works automatically:
- Log in to the TYPO3 backend as a non-admin user
- Open the page tree
- Pages where you have content editing permissions are highlighted with the configured color
- Admin users see no highlighting (as they have permissions everywhere)
Technical Details
Requirements
- TYPO3 12.4 or higher
- PHP 8.1 or higher
How It Works
The extension uses TYPO3's PSR-14 event system:
- Listens to
AfterPageTreeItemsPreparedEvent - Checks each page for
Permission::CONTENT_EDITrights - Applies background color to permitted pages
- Skips processing for admin users
Architecture
Classes/
└── EventListener/
├── BackendTemplateListener.php # Loads JS module in backend
└── PageTreeItemsListener.php # Main event listener
Configuration/
├── JavaScriptModules.php # ES6 module registration
└── Services.yaml # Service registration
Resources/
├── Private/
│ └── Language/
│ ├── locallang.xlf # English labels
│ └── de.locallang.xlf # German translation
└── Public/
└── JavaScript/
└── permissions-filter-toggle.js # Filter toggle UI
ext_conf_template.txt # Extension configuration template
ext_emconf.php # Extension metadata
composer.json # Composer metadata
Compatibility
| TYPO3 Version | Extension Version | Support |
|---|---|---|
| 12.4 LTS | 1.2.x | ✅ Active |
| 12.4 LTS | 1.1.x | Security fix |
| 12.4 LTS | 1.0.x | Initial release |
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This extension is licensed under the GNU General Public License v2.0 or later.
Support
For bugs, feature requests, or questions:
- Open an issue on GitHub: https://github.com/ithilgers/pagetree-permissions-highlight
Credits
Developed by Theodor Hilgers.
Keywords: TYPO3, backend, page tree, permissions, visual feedback, editor experience
ithilgers/pagetree-permissions-highlight 适用场景与选型建议
ithilgers/pagetree-permissions-highlight 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 258 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「editor」 「backend」 「extension」 「highlight」 「typo3」 「permissions」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ithilgers/pagetree-permissions-highlight 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ithilgers/pagetree-permissions-highlight 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ithilgers/pagetree-permissions-highlight 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
This bundle offers a simple backend explanation form field (inputType).
Preview of settings in footer of tt_content element in page module.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
统计信息
- 总下载量: 258
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-01-06