Skip to content

Commit f3ee210

Browse files
authored
fix: use 'tools' parent for v13 compatibility (#74)
## Summary - Fix backend module using `parent => 'admin'` which only exists in TYPO3 v14 - On v13, the `admin` group doesn't exist — modules with a non-existent parent silently fail to register - Changed to `parent => 'tools'` which works on both versions: - v13: `tools` exists natively as the admin tools group - v14: `tools` is an alias for the new `admin` group ## Context `composer.json` declares `^13.4 || ^14.0` support, but the module registration only worked on v14. Same issue was fixed in nr_vault: netresearch/t3x-nr-vault#92 ## Test plan - [ ] Install nr_llm on TYPO3 v14 — LLM module appears under Admin Tools - [ ] Install nr_llm on TYPO3 v13 — LLM module appears under Admin Tools - [ ] All submodules (Providers, Models, Configurations, Tasks, Wizard) accessible from docheader dropdown
2 parents 1644da4 + 5f16600 commit f3ee210

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Configuration/Backend/Modules.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
/**
1818
* Backend module registration for nr_llm.
1919
*
20-
* Structure: Main module under 'admin', sub-modules as children of main module.
20+
* Structure: Main module under 'tools', sub-modules as children of main module.
2121
* Sub-modules only appear in docheader dropdown, not in main navigation.
2222
*
23+
* Uses 'tools' as parent for v13+v14 compatibility:
24+
* - v13: 'tools' exists natively as the admin tools group
25+
* - v14: 'tools' is an alias for the new 'admin' group
26+
*
2327
* Pattern follows TYPO3 Styleguide extension:
2428
* - Main module identifier without prefix (e.g., 'nrllm' not 'tools_nrllm')
2529
* - Child modules with parent as prefix (e.g., 'nrllm_providers')
@@ -28,7 +32,7 @@
2832
return [
2933
// Main dashboard module (parent container)
3034
'nrllm' => [
31-
'parent' => 'admin',
35+
'parent' => 'tools',
3236
'position' => ['after' => 'styleguide'],
3337
'access' => 'admin',
3438
'iconIdentifier' => 'module-nrllm',

0 commit comments

Comments
 (0)