From 5fa7be3660a6a2b2c56b553e99040f30c6f9e84a Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Sun, 1 Mar 2026 19:29:58 +0100 Subject: [PATCH] fix: add Overview submodule for v13 module overview compatibility In TYPO3 v13, showSubmoduleOverview is not supported and the parent module redirects to the first submodule. Add an explicit Overview submodule as the first child so v13 shows the overview/dashboard page instead of the Secrets list. Signed-off-by: Sebastian Mendel --- Configuration/Backend/Modules.php | 29 ++++++++++++++++++- .../Language/Modules/overview_submodule.xlf | 17 +++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 Resources/Private/Language/Modules/overview_submodule.xlf diff --git a/Configuration/Backend/Modules.php b/Configuration/Backend/Modules.php index e8f6a0e..91e1ff0 100644 --- a/Configuration/Backend/Modules.php +++ b/Configuration/Backend/Modules.php @@ -19,14 +19,22 @@ * - Parent shows submodule overview with cards * - Submodule selector appears in DocHeader * + * Uses 'tools' as parent for v13+v14 compatibility: + * - v13: 'tools' exists natively as the admin tools group + * - v14: 'tools' is an alias for the new 'admin' group + * * Uses LLL:EXT: label format (compatible with TYPO3 v13+v14) + * + * v13 compatibility: 'admin_vault_overview' is registered as first submodule so that + * v13 (which redirects to the first submodule) shows the overview page. + * v14 uses 'showSubmoduleOverview' on the parent module for the same effect. */ return [ // Parent module - custom overview with usage information // dependsOnSubmodules: true enables the submodule dropdown in DocHeader // showSubmoduleOverview: true prevents redirect to last-used submodule 'admin_vault' => [ - 'parent' => 'admin', + 'parent' => 'tools', 'position' => ['after' => 'admin_sites'], 'access' => 'admin', 'workspaces' => 'live', @@ -45,6 +53,25 @@ ], ], + // Overview submodule - v13 compatibility + // In v13, dependsOnSubmodules redirects to the first submodule. + // This ensures the overview page is shown instead of secrets. + // In v14, showSubmoduleOverview on the parent handles this natively. + 'admin_vault_overview' => [ + 'parent' => 'admin_vault', + 'position' => ['before' => '*'], + 'access' => 'admin', + 'workspaces' => 'live', + 'path' => '/module/admin/vault/overview', + 'labels' => 'LLL:EXT:nr_vault/Resources/Private/Language/Modules/overview_submodule.xlf', + 'iconIdentifier' => 'module-vault', + 'routes' => [ + '_default' => [ + 'target' => OverviewController::class . '::indexAction', + ], + ], + ], + // Secrets submodule 'admin_vault_secrets' => [ 'parent' => 'admin_vault', diff --git a/Resources/Private/Language/Modules/overview_submodule.xlf b/Resources/Private/Language/Modules/overview_submodule.xlf new file mode 100644 index 0000000..be3c8eb --- /dev/null +++ b/Resources/Private/Language/Modules/overview_submodule.xlf @@ -0,0 +1,17 @@ + + + +
+ + + Overview + + + Vault overview and status + + + Overview of Vault secrets management, encryption status, and system health. + + + +