ithilgers/pagetree-permissions-highlight
最新稳定版本:v1.1.0
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
- 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/
└── PageTreeItemsListener.php # Main event listener
Configuration/
└── Services.yaml # Service registration
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.0.x | ✅ Active |
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
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-01-06