maikschneider / category-tree
Reusable category tree navigation component for TYPO3 backend modules, plus an optional category management module.
Package info
github.com/maikschneider/category-tree
Type:typo3-cms-extension
pkg:composer/maikschneider/category-tree
Requires
- php: ^8.2
- typo3/cms-backend: ^13.4 || ^14.3
- typo3/cms-core: ^13.4 || ^14.3
Requires (Dev)
- armin/editorconfig-cli: ^2.1
- ergebnis/composer-normalize: ^2.45
- friendsofphp/php-cs-fixer: ^3.12
- maikschneider/category-tree-second: @dev
- move-elevator/composer-translation-validator: ^1.3
- phpstan/extension-installer: ^1.3
- saschaegerer/phpstan-typo3: ^3.0
- typo3/cms-filelist: ^13.4 || ^14.3
- typo3/cms-install: ^13.4 || ^14.3
- typo3/cms-lowlevel: ^13.4 || ^14.3
- typo3/cms-setup: ^13.4 || ^14.3
- typo3/testing-framework: ^9.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- dev-chore/release-1.0.0
- dev-fix/16-module-respects-module-settings
- dev-fix/14-delete-scheduled-descendants
- dev-ci/codecov-coverage
- dev-docs/rst-documentation
- dev-feat/extension-icon
- dev-chore/ter-release-infra
- dev-feat/category-permissions
- dev-fix/7-keep-active-path-after-search
- dev-docs/security-policy
- dev-fix/id-parameter
- dev-fix/context-menu
- dev-fix/category-type-not-saved
This package is auto-updated.
Last update: 2026-12-01 11:36:31 UTC
README
TYPO3 extension category_tree
A reusable category tree navigation component for TYPO3 backend modules, plus an optional Categories module for managing sys_category records. Declare the tree as the navigation component of your module, and selecting a node reloads the module with a category=<uid> query parameter. Creating, renaming, moving, copying, deleting and searching categories is handled by the tree.
<?php // EXT:my_ext/Configuration/Backend/Modules.php use MyVendor\MyExt\Controller\ReportController; return [ 'myext_reports' => [ 'parent' => 'web', 'access' => 'user', 'labels' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_mod.xlf', 'inheritNavigationComponentFromMainModule' => false, 'navigationComponent' => '@maikschneider/category-tree/category-tree-element', 'routes' => [ '_default' => ['target' => ReportController::class . '::handleRequest'], ], ], ];
Your controller reads $request->getQueryParams()['category'] ?? 0. That is the entire contract.
✨ Features
- Navigation component for any backend module, modelled on TYPO3's page tree
- Editing in the tree: drag-create, rename in place, move or copy by drag and drop, delete whole branches, search
- Entry points and exclusions: start the tree anywhere, leave branches out
- Per-module settings through the module registry and User TSconfig
- Category mounts of backend users and groups are respected
- Categories module that opens the selected category in the record form, can be switched off
- PSR-14 event for badges and labels, and a decoratable entry point resolver
🔥 Installation
composer require maikschneider/category-tree
The navigation component is available right away, and the Categories module appears in the Content section (Web on TYPO3 13.4). Nothing has to be added to a site set or TypoScript.
| Dependency | Version |
|---|---|
| PHP | ^8.2 |
| TYPO3 | ^13.4 || ^14.3 |
📙 Documentation
Configuration, usage and the developer API: docs.typo3.org.
🧑💻 Contributing
See CONTRIBUTING.md.
🔒 Security Policy
Please read our security policy if you discover a security vulnerability in this extension.
⭐ License
This project is licensed under GNU General Public License 2.0 (or later).
