Hallo nochmal,
ich bin tatsächlich so weit gekommen, dass ich ein funktionierendes Beispiel sehen konnte. Dieses zielte aber darauf ab, für die Tabelle tt_content über IRRE weitere Datensätze hinzuzufügen.
Ich habe also analog eine separate Tabelle erstellt.
Zunächst das funktionierende Beispiel:
CREATE TABLE tx_meineExtension_domain_model_artikel (
inhalt int(11) unsigned DEFAULT '0',
);
CREATE TABLE tt_content (
artikel int(11) unsigned DEFAULT '0' NOT NULL
);
[...]
'inhalt' => array(
'exclude' => 0,
'label' => 'Inhalte',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tt_content',
'foreign_field' => 'artikel',
'maxitems' => 9999,
'appearance' => array(
'collapse' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1
),
),
),
[...]
Für mein folgendes Beispiel wird aber nichts angezeigt. Es wird doch nur eine andere Tabelle angegeben. Habe ich noch was vergessen?
CREATE TABLE tx_newscustom_domain_model_field (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
inhalt int(11) unsigned DEFAULT '0',
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(10) DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_wsid int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(255) DEFAULT '' NOT NULL,
t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
t3ver_stage int(11) DEFAULT '0' NOT NULL,
t3ver_count int(11) DEFAULT '0' NOT NULL,
t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
t3ver_move_id int(11) DEFAULT '0' NOT NULL,
t3_origuid int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
inhalt int(11) unsigned DEFAULT '0',
PRIMARY KEY (uid),
KEY parent (pid),
KEY t3ver_oid (t3ver_oid,t3ver_wsid),
KEY language (l10n_parent,sys_language_uid)
);
[...]
'inhalt' => array(
'exclude' => 0,
'label' => 'Inhalte',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_newscustom_domain_model_field',
'foreign_field' => 'artikel',
'maxitems' => 9999,
'appearance' => array(
'collapse' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1
),
),
),
[...]
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_news_domain_model_news','inhalt');