[TASK] Add PAGES_TYPES to configuration view 04/52604/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 25 Apr 2017 11:05:27 +0000 (13:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 25 Apr 2017 13:42:51 +0000 (15:42 +0200)
The 'configuration' module misses a clickable array
browser for $GLOBALS['PAGES_TYPES']. Add it.

Change-Id: I2679d5ebc8c3b195b0f7a5a6761ed299acfae9de
Resolves: #81007
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/52604
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
typo3/sysext/lowlevel/Resources/Private/Language/locallang.xlf

index e48ca65..bede113 100644 (file)
@@ -128,7 +128,8 @@ class ConfigurationView extends BaseScriptClass
                 7 => LocalizationUtility::translate('tbeStyles', 'lowlevel'),
                 8 => LocalizationUtility::translate('beUser', 'lowlevel'),
                 9 => LocalizationUtility::translate('usersettings', 'lowlevel'),
-                10 => LocalizationUtility::translate('routes', 'lowlevel')
+                10 => LocalizationUtility::translate('pagesTypes', 'lowlevel'),
+                11 => LocalizationUtility::translate('routes', 'lowlevel'),
             ],
             'regexsearch' => '',
             'fixedLgd' => ''
@@ -205,6 +206,11 @@ class ConfigurationView extends BaseScriptClass
                 $arrayBrowser->varName = '$TYPO3_USER_SETTINGS';
                 break;
             case 10:
+                $theVar = $GLOBALS['PAGES_TYPES'];
+                ArrayUtility::naturalKeySortRecursive($theVar);
+                $arrayBrowser->varName = '$PAGES_TYPES';
+                break;
+            case 11:
                 $router = GeneralUtility::makeInstance(Router::class);
                 $routes = $router->getRoutes();
                 $theVar = [];
index 35f6eaa..59178aa 100644 (file)
@@ -39,6 +39,9 @@
                        <trans-unit id="tbemodules">
                                <source>$GLOBALS['TBE_MODULES'] (BE Modules)</source>
                        </trans-unit>
+                       <trans-unit id="pagesTypes">
+                               <source>$GLOBALS['PAGES_TYPES'] (Table permissions by page type)</source>
+                       </trans-unit>
                        <trans-unit id="cropLines">
                                <source>Crop lines</source>
                        </trans-unit>