[TASK] Use speaking keys for new menu types 66/26566/2
authorFrancois Suter <francois@typo3.org>
Fri, 27 Dec 2013 15:47:01 +0000 (16:47 +0100)
committerFrancois Suter <francois@typo3.org>
Thu, 6 Feb 2014 09:44:04 +0000 (10:44 +0100)
The new menu "categories-based tt_content menu" uses a "speaking" key
for its type. The same should be applied to the other new menu type
introduced in TYPO3 CMS 6.2 (i.e. categories-based page menu).

Resolves: #54611
Releases: 6.2
Change-Id: I489a528050dcfeef83c1919155a3b11e599b195c
Reviewed-on: https://review.typo3.org/26566
Reviewed-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Michiel Roos
Reviewed-by: Francois Suter
Tested-by: Francois Suter
typo3/sysext/cms/locallang_ttc.xlf
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/css_styled_content/static/setup.txt
typo3/sysext/css_styled_content/static/v4.5/setup.txt
typo3/sysext/css_styled_content/static/v4.6/setup.txt
typo3/sysext/css_styled_content/static/v4.7/setup.txt
typo3/sysext/css_styled_content/static/v6.0/setup.txt
typo3/sysext/css_styled_content/static/v6.1/setup.txt
typo3/sysext/frontend/Configuration/TCA/tt_content.php

index e087da3..33676d2 100644 (file)
                        <trans-unit id="menu_type.I.8" xml:space="preserve">
                                <source>Sitemaps of selected pages</source>
                        </trans-unit>
-                       <trans-unit id="menu_type.I.9" xml:space="preserve">
+                       <trans-unit id="menu_type.I.categorized_pages" xml:space="preserve">
                                <source>Pages for selected categories</source>
                        </trans-unit>
                        <trans-unit id="menu_type.I.categorized_content" xml:space="preserve">
index 12b48e0..df23603 100644 (file)
@@ -143,7 +143,7 @@ class CategoryRegistry implements \TYPO3\CMS\Core\SingletonInterface {
        public function getCategoryFieldsForTable(array &$configuration, \TYPO3\CMS\Backend\Form\FormEngine $formObject) {
                $table = '';
                // Define the table being looked up from the type of menu
-               if ($configuration['row']['menu_type'] == 9) {
+               if ($configuration['row']['menu_type'] == 'categorized_pages') {
                        $table = 'pages';
                } elseif ($configuration['row']['menu_type'] == 'categorized_content') {
                        $table = 'tt_content';
index cc865f3..e68ec0f 100644 (file)
@@ -2081,15 +2081,15 @@ tt_content.menu {
                }
 
                # Menu of categorized pages
-               9 < .default
-               9 {
+               categorized_pages < .default
+               categorized_pages {
                        special = categories
                        special.value.field = selected_categories
                        special.relation.field = category_field
                        special.sorting = title
                        special.order = asc
                        stdWrap {
-                               outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+                               outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
                        }
                }
 
index e788ca0..82cf2f5 100644 (file)
@@ -1530,15 +1530,15 @@ tt_content.menu {
                }
 
                # Menu of categorized pages
-               9 < .default
-               9 {
+               categorized_pages < .default
+               categorized_pages {
                        special = categories
                        special.value.field = selected_categories
                        special.relation.field = category_field
                        special.sorting = title
                        special.order = asc
                        stdWrap {
-                               outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+                               outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
                        }
                }
 
index 0107fa7..790a61e 100644 (file)
@@ -1480,15 +1480,15 @@ tt_content.menu {
                }
 
                # Menu of categorized pages
-               9 < .default
-               9 {
+               categorized_pages < .default
+               categorized_pages {
                        special = categories
                        special.value.field = selected_categories
                        special.relation.field = category_field
                        special.sorting = title
                        special.order = asc
                        stdWrap {
-                               outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+                               outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
                        }
                }
 
index 4f7353d..eee3571 100644 (file)
@@ -1959,15 +1959,15 @@ tt_content.menu {
                }
 
                # Menu of categorized pages
-               9 < .default
-               9 {
+               categorized_pages < .default
+               categorized_pages {
                        special = categories
                        special.value.field = selected_categories
                        special.relation.field = category_field
                        special.sorting = title
                        special.order = asc
                        stdWrap {
-                               outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+                               outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
                        }
                }
 
index 9bd5f1f..672d063 100644 (file)
@@ -1943,15 +1943,15 @@ tt_content.menu {
                }
 
                # Menu of categorized pages
-               9 < .default
-               9 {
+               categorized_pages < .default
+               categorized_pages {
                        special = categories
                        special.value.field = selected_categories
                        special.relation.field = category_field
                        special.sorting = title
                        special.order = asc
                        stdWrap {
-                               outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+                               outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
                        }
                }
 
index ac8b69a..66cd20f 100644 (file)
@@ -1944,15 +1944,15 @@ tt_content.menu {
                }
 
                # Menu of categorized pages
-               9 < .default
-               9 {
+               categorized_pages < .default
+               categorized_pages {
                        special = categories
                        special.value.field = selected_categories
                        special.relation.field = category_field
                        special.sorting = title
                        special.order = asc
                        stdWrap {
-                               outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+                               outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
                        }
                }
 
index ba3db1c..339da0b 100644 (file)
@@ -1144,8 +1144,8 @@ return array(
                                                '6'
                                        ),
                                        array(
-                                               'LLL:EXT:cms/locallang_ttc.xlf:menu_type.I.9',
-                                               '9'
+                                               'LLL:EXT:cms/locallang_ttc.xlf:menu_type.I.categorized_pages',
+                                               'categorized_pages'
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_ttc.xlf:menu_type.I.categorized_content',