[FEATURE] Add new main module "Site" 25/55425/3
authorBenni Mack <benni@typo3.org>
Mon, 22 Jan 2018 15:32:29 +0000 (16:32 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 22 Jan 2018 18:38:02 +0000 (19:38 +0100)
A new main module for the TYPO3 Backend is introduced, named "site",
which serves a main entry point for integrators and site admins to configure
the "Frontend" and the "How" of a TYPO3 website, and not the "what" (= content).

The site management module's purpose for now is to include Redirect Management,
but will be extended during v9 development to also contain Domain/Site/404
URL handling, TypoScript and Templating / Fluid configuration.

Resolves: #83637
Releases: master
Change-Id: I06c88d09fa16a40fa8c0f6176ed05f002629498c
Reviewed-on: https://review.typo3.org/55425
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Reiner Teubner <reiner.teubner@me.com>
Tested-by: Reiner Teubner <reiner.teubner@me.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/core/Documentation/Changelog/master/Feature-83637-AddedNewMainModuleSiteManagement.rst [new file with mode: 0644]
typo3/sysext/core/Resources/Private/Language/locallang_mod_site.xlf [new file with mode: 0644]
typo3/sysext/core/ext_tables.php

index de3a582..57c5f1a 100644 (file)
@@ -128,6 +128,12 @@ class IconRegistry implements SingletonInterface
                 'name' => 'file-o'
             ]
         ],
+        'module-site' => [
+            'provider' => FontawesomeIconProvider::class,
+            'options' => [
+                'name' => 'globe'
+            ]
+        ],
         'module-file' => [
             'provider' => FontawesomeIconProvider::class,
             'options' => [
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-83637-AddedNewMainModuleSiteManagement.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-83637-AddedNewMainModuleSiteManagement.rst
new file mode 100644 (file)
index 0000000..3b349db
--- /dev/null
@@ -0,0 +1,41 @@
+.. include:: ../../Includes.txt
+
+=========================================================
+Feature: #83637 - Added new main module "Site Management"
+=========================================================
+
+See :issue:`83637`
+
+Description
+===========
+
+A new main module for the TYPO3 Backend "Site" (module key "site") has been added to the TYPO3 Core.
+
+It's main purpose is to host submodules related to Integrators and Site maintainers to configure a website,
+language configuration, domains and routing.
+
+For TYPO3 9.1, the system extension "redirects" adds URL redirects to the main module, if installed.
+
+
+Impact
+======
+
+To add a new module to the Site main module, register a module within an extensions` :php:'ext_tables.php' file:
+
+.. code-block:: php
+
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+        'site',
+        'mymodule',
+        '',
+        '',
+        [
+            'routeTarget' => \MyVendor\MyPackage\Controller\MyModuleController::class . '::handleRequest',
+            'access' => 'group,user',
+            'name' => 'site_mymodule',
+            'icon' => 'EXT:mypackage/Resources/Public/Icons/module_icon.svg',
+            'labels' => 'LLL:EXT:mypackage/Resources/Private/Language/locallang_module_mymodule.xlf'
+        ]
+    );
+
+.. index:: Backend, NotScanned
\ No newline at end of file
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_mod_site.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_mod_site.xlf
new file mode 100644 (file)
index 0000000..6d250dd
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1515791957" source-language="en" datatype="plaintext" original="messages" date="2017-12-29T20:22:34Z" product-name="core">
+               <header/>
+               <body>
+                       <trans-unit id="mlang_labels_tablabel">
+                               <source>Site</source>
+                       </trans-unit>
+                       <trans-unit id="mlang_labels_tabdescr">
+                               <source>This main module holds all optimization for Site Integrators to manage different websites within one TYPO3 installation, templates, TypoScript and routing options.</source>
+                       </trans-unit>
+                       <trans-unit id="mlang_tabs_tab">
+                               <source>Site Management</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
index ccb080c..8bee24d 100644 (file)
@@ -37,6 +37,7 @@ $GLOBALS['PAGES_TYPES'] = [
  */
 $GLOBALS['TBE_MODULES'] = [
     'web' => 'list',
+    'site' => '',
     'file' => '',
     'user' => '',
     'tools' => '',
@@ -48,6 +49,12 @@ $GLOBALS['TBE_MODULES'] = [
             'name' => 'web',
             'iconIdentifier' => 'module-web'
         ],
+        'site' => [
+            'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_site.xlf',
+            'name' => 'site',
+            'workspaces' => 'online',
+            'iconIdentifier' => 'module-site',
+        ],
         'file' => [
             'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_file.xlf',
             'navigationFrameModule' => 'file_navframe',