[BUGFIX] Set maxLevels of generated sys_category TCA 97/29297/4
authorFrans Saris <franssaris@gmail.com>
Tue, 8 Apr 2014 13:20:50 +0000 (15:20 +0200)
committerFrans Saris <franssaris@gmail.com>
Wed, 16 Apr 2014 17:32:48 +0000 (19:32 +0200)
The maxLevels in the TCA tree configuration is not set
by the CategoryRegistry. As a result only 4 levels are
shown.

This patch sets the maxLevels to 99 and also updates the
appearance settings of the sys_category:parent field
so these are inline with the other category tree fields.

Resolves: #57750
Releases: 6.2
Change-Id: I7c33b71d2af214cf1b2027e4769c1cc43a3c43d6
Reviewed-on: https://review.typo3.org/29297
Reviewed-by: Alexander Opitz
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Reviewed-by: Stefan Neufeind
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Frans Saris
Tested-by: Frans Saris
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/core/Configuration/TCA/sys_category.php

index 22e3d24..85e0372 100644 (file)
@@ -345,6 +345,7 @@ class CategoryRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                        'appearance' => array(
                                                'expandAll' => TRUE,
                                                'showHeader' => TRUE,
+                                               'maxLevels' => 99,
                                        ),
                                ),
                        );
index 0b8eda2..e2c4c73 100644 (file)
@@ -141,7 +141,12 @@ return array(
                                'foreign_table' => 'sys_category',
                                'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
                                'treeConfig' => array(
-                                       'parentField' => 'parent'
+                                       'parentField' => 'parent',
+                                       'appearance' => array(
+                                               'expandAll' => TRUE,
+                                               'showHeader' => TRUE,
+                                               'maxLevels' => 99,
+                                       ),
                                )
                        )
                ),