Project

General

Profile

Actions

Feature #29474

closed

TCA tree check in cascade

Added by Fabien Udriot about 13 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-09-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It would be nice to have the checks of the TCA tree being set in cascade. It means when checking a child node, a parent node get automatically checked and, respectively, when unchecking a parent node, a child node get automatically unchecked

See bellow how to test the patch.


Files

feature_29474.diff (1.65 KB) feature_29474.diff Fabien Udriot, 2011-09-05 05:27

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #25061: add option to select recursively in tcaTreeClosedSteffen Ritter2011-02-16

Actions
Actions #1

Updated by Fabien Udriot about 13 years ago

Hint for reviewing
1. apply patch
2. set TCA in typo3conf/extTables.php (cf. bellow
3. open a "page property" > tab "Resources" > field "General Record Storage Page"
4. check some child field within the tree -> parent should be checked also

/////////////////////////////
// TEMP CODE IN @typo3conf/extTables.php@
///////////////////////////
t3lib_div::loadTCA('pages');
$tempConfiguration = array(
    'type' => 'select',
    'foreign_table' => 'pages',
    'size' => 10,
    'maxitems' => 5,
    'renderMode' => 'tree',
    'treeConfig' => array(
        'expandAll' => true,
        'parentField' => 'pid',
        'appearance' => array(
            'showHeader' => TRUE,
            'allowRecursiveMode' => TRUE,

        ),
    ),
);
$TCA['pages']['columns']['storage_pid']['config'] = array_merge(
    $TCA['pages']['columns']['storage_pid']['config'],
    $tempConfiguration
);
Actions #2

Updated by Fabien Udriot about 13 years ago

Still an open question whether this behaviour should be configurable or be set a default. @todo see this question with the Usability Team

Actions #4

Updated by Fabien Udriot about 13 years ago

Thanks for the pointer. Indeed #25061 is about the same feature.

Actions #5

Updated by Alexander Opitz almost 10 years ago

  • Status changed from New to Closed

As #25061 is resolved, I close this issue now.

Actions

Also available in: Atom PDF