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. + + + +