Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion Configuration/Backend/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
17 changes: 17 additions & 0 deletions Resources/Private/Language/Modules/overview_submodule.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="EXT:nr_vault/Resources/Private/Language/Modules/overview_submodule.xlf" product-name="nr_vault">
<header/>
<body>
<trans-unit id="mlang_tabs_tab">
<source>Overview</source>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr">
<source>Vault overview and status</source>
</trans-unit>
<trans-unit id="mlang_labels_tablabel">
<source>Overview of Vault secrets management, encryption status, and system health.</source>
</trans-unit>
</body>
</file>
</xliff>
Loading