[TYPO3-mvc] Select and foreign_field
Yann PETIT
web at agencefmc.com
Thu Jul 8 11:46:41 CEST 2010
Hello world,
I try to have a 1->n relation managed with 'foreign_field' like 'inline
fields' but I would like to display this as a multiple select.
------------------------
In the Parent,
childs int(11)
------------------------------
'childs' => array (
'exclude' => 0,
'config' => array (
'type' => 'select',
'foreign_table' => 'tx_ext_domain_model_child',
'foreign_table_where' => 'AND
tx_ext_domain_model_child.pid=###CURRENT_PID###',
'foreign_field' => 'parent',
'size' => 30,
'minitems' => 0,
'maxitems' => 999,
)
),
----------------------------
In the child :
parent int(11)
----------------------------------
parent => array (
'config' => array (
'type' => 'select',
'items' => array (
array('',0),
),
'foreign_table' => 'tx_ext_domain_model_parent',
'foreign_table_where' => 'AND
tx_ext_domain_model_equipel1.pid=###CURRENT_PID### ',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
)
),
-----------------------------------
This works well with Extbase (count of childs in parent.childs and
parent.uid in child.parent) , but Typo3 4.4.0 BackEnd (like my previous
version) refuse to use this format... and try a comma separated list in
parent.childs.
Please, can someone tell me :
If I can do that ?
If there is a way to get this working in the backend ?
Excuse my english
Yann
More information about the TYPO3-project-typo3v4mvc
mailing list