Bug #31288
closedTCA renderMode "tree" issue
0%
Description
I am trying to implement the new renderMode "tree" feature in TCA for a custom database-table.
I am using IRRE to build a tree using the "irre_parentid"-field used for IRRE. Now I also need a TREE that is able to list all IRRE-Records in their correct order/relation.
I tried to implement the rendermode->tree for pages which works perfectly and shows a tree with relation between each uid/pid relation just as known from BE-PageTree.
[...]
'config' => array (
'type' => 'select',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'pid',
'appearance' => array(
'expandAll' => true,
'showHeader' => true,
'nonSelectableLevels' => '',
),
),
'foreign_table' => 'pages',
),
[...]
Now I need this whereas the pid-Field just would need to be replaced with "irre_parentid" which is used in IRRE-Records to reference to the parent-record "uid". I should mention that the IRRE-Records are shown correctly (even with correct nesting between uid/irre_parentid).
[...]
'config' => array (
'type' => 'select',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'irre_parentid',
'appearance' => array(
'expandAll' => true,
'showHeader' => true,
'nonSelectableLevels' => '',
),
),
'foreign_table' => 'tx_tnmnicefaq_items',
),
[...]
Now this doesn't return any records and shows only the table-name as "root" without any childs!
Where is the problem?