定制 ithilgers/pagetree-permissions-highlight 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

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
  • 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:

  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/
    ├── 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:

  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

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 ithilgers/pagetree-permissions-highlight 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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