[TYPO3-english] IRRE with MN table

Jan Bednarik info at bednarik.org
Fri Feb 19 00:25:18 CET 2010

Hey guys,

I'm struggling with my first IRRE in my extension. What I need to do is 
to defined contents of a popup, so I've created field that is MN 
relation to tt_content via MN table (all created by Kickstarter). The MN 
table definition is following:

CREATE TABLE tx_3darchitektform_item_popup_mm (
   uid_local int(11) DEFAULT '0' NOT NULL,
   uid_foreign int(11) DEFAULT '0' NOT NULL,
   tablenames varchar(30) DEFAULT '' NOT NULL,
   sorting int(11) DEFAULT '0' NOT NULL,
   KEY uid_local (uid_local),
   KEY uid_foreign (uid_foreign)

Now, I'd like to have IRRE of tt_content in my extension for field 
"popup". So I've done this:

'popup' => array (		
			'exclude' => 0,		
			'label' => 
			'config' => array (
				'type' => 'inline',		
				'maxitems' => 99,	
				"foreign_table" => "tt_content",
				'MM' => 'tx_3darchitektform_item_popup_mm',
				'appearance' => Array(
           'collapseAll' => 1,
           'expandSingle' => 1,


This actually shows "Create new" and allows me to create new tt_content, 
but when I save it, the relation is not established (no new row in the 
MN table).

So, what's wrong here? I've followed manual in wiki [1].

[1]: http://wiki.typo3.org/index.php/Inline_Relational_Record_Editing_1:n


Jan Bednarik
www.bednarik.org - web about Typo3 in czech

More information about the TYPO3-english mailing list