diff --git a/Configuration/Backend/Modules.php b/Configuration/Backend/Modules.php index d5f88534..ba87a28d 100644 --- a/Configuration/Backend/Modules.php +++ b/Configuration/Backend/Modules.php @@ -5,11 +5,16 @@ return [ // Register styleguide backend module in help toolbar 'help_styleguide' => [ - 'parent' => 'help', - 'access' => 'user', - 'path' => '/module/help/styleguide', + 'parent' => 'system', + 'access' => 'admin', + 'workspaces' => 'live', + 'path' => '/module/system/styleguide', 'iconIdentifier' => 'module-styleguide', - 'labels' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf', + 'labels' => [ + 'title' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:module.configuration.title', + 'shortDescription' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:module.configuration.shortDescription', + 'description' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:module.configuration.description', + ], 'routes' => [ '_default' => [ 'target' => BackendController::class . '::handleRequest', diff --git a/README.md b/README.md index 2076e8dd..2a19cff3 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,8 @@ TYPO3 CMS Backend Styleguide # What is it? -Styleguide is a TYPO3 extension. It provides a backend module that hooks -into the 'Help' menu of the top toolbar of the TYPO3 Backend. It can also create a -page tree to show examples. +Styleguide is a TYPO3 extension. It provides a backend module in the +"System" section of the backend. It can create a page tree to show examples. When TYPO3 core adds or deprecates features covered by this extension, core developers strive to keep it updated, reflecting these changes. @@ -45,9 +44,8 @@ for own extensions: # Installation -Styleguide comes as a TYPO3 extension for the TYPO3 backend. It appears as backend module -within the "Help" section of the top toolbar. After initial installation, it is advisable -to let styleguide create an example page tree with records by clicking the +Styleguide comes as a TYPO3 extension for the TYPO3 backend. After initial installation, it is +advisable to let styleguide create an example page tree with records by clicking the "TCA / records -> Create styleguide page tree with data", and waiting for a couple of seconds for the system to crunch the data. diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 6b018be1..7846727e 100755 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -3,14 +3,14 @@
- + Styleguide - - Styleguide + + Styleguide of the TYPO3 CMS - - Styleguide + + The module offers the creation of a page tree either with TCA demo records or content elements.<br />In addition, the most well-known backend components that come with the TYPO3 CMS are presented.<br /><em>Access for 'admin' users only!</em> Styleguide diff --git a/Tests/Acceptance/Backend/ModuleCest.php b/Tests/Acceptance/Backend/ModuleCest.php index 425a34c0..9aec6178 100644 --- a/Tests/Acceptance/Backend/ModuleCest.php +++ b/Tests/Acceptance/Backend/ModuleCest.php @@ -25,22 +25,14 @@ */ class ModuleCest { - /** - * Selector for the module container in the topbar - * - * @var string - */ - public static $topBarModuleSelector = '#typo3-cms-backend-backend-toolbaritems-helptoolbaritem'; - /** * @param BackendTester $I */ public function _before(BackendTester $I) { $I->useExistingSession('admin', 1); - $I->click(Topbar::$dropdownToggleSelector, self::$topBarModuleSelector); - $I->canSee('Styleguide', self::$topBarModuleSelector); - $I->click('Styleguide', self::$topBarModuleSelector); + $I->canSee('Styleguide'); + $I->click('Styleguide'); $I->switchToContentFrame(); }