[TYPO3-workspace] Rendering TCA select field in renderMode tree using workspace overlays
Rens Admiraal
rens.admiraal at typo3.org
Tue Jun 14 23:34:11 CEST 2011
Hi all,
I've a problem with a TCA configuration for a workspace enabled table. I want
to render a tree using renderMode tree in the TCA configuration, and I only
want to select records in a certain page, so, the configuration of the field
looks something like:
'tag' => array (
'exclude' => 1,
'label' => 'Tag',
'config' => array (
'type' => 'select',
'internal_type' => 'db',
'size' => 20,
'minitems' => 0,
'maxitems' => 999,
'foreign_table' => 'tags',
'foreign_table_where' => ' AND tags.pid = 1 ORDER BY tags.title ASC',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'tag',
'appearance' => array(
'expandAll' => TRUE,
'showHeader' => TRUE,
'maxLevels' => 999,
)
)
)
)
But of course this is causing problems if I create a record in a workspace.
This causes the select field to find records with pid -1, which are now all
shown on the first level of the tree. As soon as I publish the record to the
live workspace it's on the right spot.
My question(s):
1) Did I misconfigure something in my TCA configuration?
2) Is the select field / renderMode tree even designed to show an overlayed
list?
--
Rens Admiraal
Core Developer V5 Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-team-workspace
mailing list