Feature #29474
closed
TCA tree check in cascade
Added by Fabien Udriot over 12 years ago.
Updated over 9 years ago.
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
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
);
Still an open question whether this behaviour should be configurable or be set a default. @todo see this question with the Usability Team
Thanks for the pointer. Indeed #25061 is about the same feature.
- Status changed from New to Closed
As #25061 is resolved, I close this issue now.
Also available in: Atom
PDF