[BUGFIX] Hide the field "Selected Pages" for menu type "Sitemap"
authorMarco Huber <mail@marco-huber.de>
Fri, 13 Apr 2012 14:35:47 +0000 (16:35 +0200)
committerStefan Galinski <stefan.galinski@gmail.com>
Wed, 13 Jun 2012 19:09:56 +0000 (21:09 +0200)
The field "Selected Pages" is never used in the content element
"Menu/Sitemap" with menu type "Sitemap". So it should not be
shown in the backend.

Change-Id: I9464ff29fc9fd9864a404cfb14f0545b3e186366
Fixes: #35944
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/12016
Reviewed-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Galinski
Tested-by: Stefan Galinski
typo3/sysext/cms/ext_tables.php
typo3/sysext/cms/tbl_tt_content.php

index e1daf8d..c3ad4a1 100755 (executable)
@@ -102,7 +102,7 @@ $TCA['tt_content'] = array (
                        'html' => 'tt_content_html.gif'
                ),
                'thumbnail' => 'image',
-               'requestUpdate' => 'list_type,rte_enabled',
+               'requestUpdate' => 'list_type,rte_enabled,menu_type',
                'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php',
                'dividers2tabs' => 1
        )
index d0b06ad..0596b83 100755 (executable)
@@ -1809,6 +1809,10 @@ $TCA['tt_content'] = array(
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
                                --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended',
+                       'subtype_value_field' => 'menu_type',
+                       'subtypes_excludelist' => array(
+                               '2' => 'pages',
+                       ),
                ),
                'mailform' =>   array(
                        'showitem' =>