[FEATURE] Disable Page Information option
authorFelix Kopp <felix-source@phorax.com>
Fri, 25 Nov 2011 11:58:21 +0000 (12:58 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Fri, 16 Dec 2011 13:06:54 +0000 (14:06 +0100)
Adds an option to disable Page Information function in Web > Page.

Fixes: #32086
Releases: 4.7
Change-Id: Ie1b157e425a20b2495e7e953bbda71fd55c15e83
Reviewed-on: http://review.typo3.org/6916
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Stefan Neufeind
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/cms/layout/db_layout.php
typo3/sysext/t3editor/res/jslib/parse_typoscript/tokenizetyposcript.js

index 0c93ff1..d14cf5d 100755 (executable)
@@ -263,8 +263,7 @@ class SC_db_layout {
                        'function' => array(
                                0 => $GLOBALS['LANG']->getLL('m_function_0'),
                                1 => $GLOBALS['LANG']->getLL('m_function_1'),
-                               2 => $GLOBALS['LANG']->getLL('m_function_2'),
-                               3 => $GLOBALS['LANG']->getLL('pageInformation'),
+                               2 => $GLOBALS['LANG']->getLL('m_function_2')
                        ),
                        'language' => array(
                                0 => $GLOBALS['LANG']->getLL('m_default')
@@ -315,6 +314,10 @@ class SC_db_layout {
                if ($this->modTSconfig['properties']['QEisDefault'])    ksort($this->MOD_MENU['function']);
                $this->MOD_MENU['function'] = t3lib_BEfunc::unsetMenuItems($this->modTSconfig['properties'],$this->MOD_MENU['function'],'menu.function');
 
+               if (!$this->modTSconfig['properties']['disablePageInformation']) {
+                       $this->MOD_MENU['function'][3] = $GLOBALS['LANG']->getLL('pageInformation');
+               }
+
                        // Remove QuickEdit as option if page type is not...
                if (!t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['FE']['content_doktypes'] . ',6', $this->pageinfo['doktype'])) {
                        unset($this->MOD_MENU['function'][0]);
index 0d01e10..4434bd6 100644 (file)
@@ -316,6 +316,7 @@ var typoscriptWords = {
        'disablePrefixComment': 'reserved',
        'disablePrependAtCopy': 'reserved',
        'disableSearchBox': 'reserved',
+       'disablePageInformation': 'reserved',
        'disableSingleTableView': 'reserved',
        'disableTabInTextarea': 'reserved',
        'displayActiveOnLoad': 'reserved',
@@ -1684,6 +1685,7 @@ var typoscriptWords = {
        'disablePrefixComment': 'reserved',
        'disablePrependAtCopy': 'reserved',
        'disableSearchBox': 'reserved',
+       'disablePageInformation': 'reserved',
        'disableSingleTableView': 'reserved',
        'disableTabInTextarea': 'reserved',
        'displayActiveOnLoad': 'reserved',