[TYPO3-dev] How do I add existing records with IRRE?

JoH asenau info at cybercraft.de
Fri Jan 22 13:43:21 CET 2010


> I probably need "foreign_selector", but the examples I found [1] all
> work with an intermediate table. I experimented a bit and succeeded
> to get a selectbox to show up, but if I select an item it creates an
> empty child record, instead of adding the chosen record to the parent.
>
> My TCA additions:
>
> In child table:
>
> 'selector_field' => array (
> 'config' => array (
> 'type' => 'select',
> 'foreign_table' => 'child_table',
> 'size' => 3,
> 'minitems' => 0,
> 'maxitems' => 100,
> )
> ),

Shouldn't the 'foreign_table' be 'parent_table' for child records?

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com






More information about the TYPO3-dev mailing list