承接 ithilgers/pagetree-permissions-highlight 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

TYPO3 12 License Packagist Version Packagist Downloads

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:

  1. Go to Admin Tools > Settings > Extension Configuration
  2. Select pagetree_permissions_highlight
  3. 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:

  1. Log in to the TYPO3 backend as a non-admin user
  2. Open the page tree
  3. Pages where you have content editing permissions are highlighted with the configured color
  4. 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_EDIT rights
  • 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:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. 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:

Credits

Developed by Theodor Hilgers.

Keywords: TYPO3, backend, page tree, permissions, visual feedback, editor experience

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-06