Skip to content

Commit

Permalink
[TASK] Update backend module configuration (#466)
Browse files Browse the repository at this point in the history
Update backend labels shown in "About TYPO3 CMS" module.
Move backend module to group "System".
  • Loading branch information
minapok authored Nov 1, 2023
1 parent e365747 commit 904abcd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 26 deletions.
13 changes: 9 additions & 4 deletions Configuration/Backend/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand Down
10 changes: 5 additions & 5 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<file source-language="en" datatype="plaintext" original="messages" date="2013-05-01T00:00:000" product-name="styleguide">
<header/>
<body>
<trans-unit id="mlang_tabs_tab">
<trans-unit id="module.configuration.title" resname="module.configuration.title">
<source>Styleguide</source>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr">
<source>Styleguide</source>
<trans-unit id="module.configuration.shortDescription" resname="module.configuration.shortDescription">
<source>Styleguide of the TYPO3 CMS</source>
</trans-unit>
<trans-unit id="mlang_labels_tablabel">
<source>Styleguide</source>
<trans-unit id="module.configuration.description" resname="module.configuration.description">
<source>The module offers the creation of a page tree either with TCA demo records or content elements.&lt;br /&gt;In addition, the most well-known backend components that come with the TYPO3 CMS are presented.&lt;br /&gt;&lt;em&gt;Access for 'admin' users only!&lt;/em&gt;</source>
</trans-unit>
<trans-unit id="styleguide" xml:space="preserve">
<source>Styleguide</source>
Expand Down
13 changes: 2 additions & 11 deletions Tests/Acceptance/Backend/ModuleCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,20 @@
*/

use TYPO3\CMS\Styleguide\Tests\Acceptance\Support\BackendTester;
use TYPO3\TestingFramework\Core\Acceptance\Helper\Topbar;

/**
* Tests the styleguide backend module can be loaded
*/
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();
}

Expand Down

0 comments on commit 904abcd

Please sign in to comment.