[TASK] Change checkboxes in pages to new rendertype 47/56747/7
authorIngo Nolden <dev@nolden.org>
Thu, 19 Apr 2018 19:39:34 +0000 (21:39 +0200)
committerBenjamin Kott <benjamin.kott@outlook.com>
Fri, 27 Apr 2018 09:06:09 +0000 (11:06 +0200)
Some checkboxes are changed to new rendertype checkboxToggle.
Four checkbox labels are added.

Resolves: #84796
Related: #84793
Releases: master
Change-Id: Icdda84d1682e87ceff404068be1ae97264a2efb2
Reviewed-on: https://review.typo3.org/56747
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
typo3/sysext/core/Configuration/TCA/pages.php
typo3/sysext/frontend/Resources/Private/Language/locallang_tca.xlf

index d44dcf7..56d029a 100644 (file)
@@ -159,9 +159,11 @@ return [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:php_tree_stop',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.enabled'
+                    [
+                        0 => '',
+                        1 => '',
                     ]
                 ]
             ]
@@ -180,24 +182,29 @@ return [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:editlock',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.enabled'
+                    [
+                        0 => '',
+                        1 => '',
                     ]
-                ]
+                ],
             ]
         ],
         'hidden' => [
             'exclude' => true,
-            'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden',
+            'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_toggle',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'default' => 1,
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_checkbox_1_formlabel'
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true
                     ]
-                ]
+                ],
             ]
         ],
         'starttime' => [
@@ -338,11 +345,13 @@ return [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.extendToSubpages',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.enabled'
+                    [
+                        0 => '',
+                        1 => '',
                     ]
-                ]
+                ],
             ]
         ],
         'nav_title' => [
@@ -358,14 +367,17 @@ return [
         'nav_hide' => [
             'exclude' => true,
             'l10n_mode' => 'prefixLangTitle',
-            'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_hide',
+            'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_hide_toggle',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_hide_checkbox_1_formlabel'
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true
                     ]
-                ]
+                ],
             ]
         ],
         'subtitle' => [
@@ -519,9 +531,12 @@ return [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.no_search',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.no_search_checkbox_1_formlabel'
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true
                     ]
                 ],
                 'behaviour' => [
@@ -716,11 +731,13 @@ return [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.is_siteroot',
             'config' => [
                 'type' => 'check',
+                'renderType' => 'checkboxToggle',
                 'items' => [
-                    '1' => [
-                        '0' => 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.enabled'
+                    [
+                        0 => '',
+                        1 => '',
                     ]
-                ]
+                ],
             ]
         ],
         'mount_pid_ol' => [
@@ -1087,7 +1104,7 @@ return [
         ],
         'visibility' => [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility',
-            'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel, nav_hide;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_hide_formlabel',
+            'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_toggle_formlabel, nav_hide;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_hide_toggle_formlabel',
         ],
         'hiddenonly' => [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility',
index 4a8ce65..2fa6925 100644 (file)
                        <trans-unit id="pages.hidden_checkbox_1_formlabel">
                                <source>Disable</source>
                        </trans-unit>
+                       <trans-unit id="pages.hidden_toggle">
+                               <source>Page visible</source>
+                       </trans-unit>
+                       <trans-unit id="pages.hidden_toggle_formlabel">
+                               <source>Page visible</source>
+                       </trans-unit>
                        <trans-unit id="pages.layout_formlabel">
                                <source>Frontend Layout</source>
                        </trans-unit>
                        <trans-unit id="pages.nav_hide_formlabel">
                                <source>In Menus</source>
                        </trans-unit>
+                       <trans-unit id="pages.nav_hide_toggle">
+                               <source>Page enabled in menus</source>
+                       </trans-unit>
+                       <trans-unit id="pages.nav_hide_toggle_formlabel">
+                               <source>Page enabled in menus</source>
+                       </trans-unit>
                        <trans-unit id="pages.nav_hide_checkbox_1_formlabel">
                                <source>Hide</source>
                        </trans-unit>