Hallo
Kann mir jamand sagen, wie ich das $TCA-Array schreiben soll, dass es die Möglichkeit gibt, an zwei verschiedenen Stellen auf das selbe Domain-Model zu zugreiffen?
Der folgende Versuch gibt mir, logischerweise, sowohl bei files als auch bei images die selben Elemente aus:
'files' => array(
'exclude' => 1,
'label' => 'files',
'config' => array(
'type' => 'inline',
'loadingStrategy' => 'proxy',
'foreign_class' => 'Tx_KiddogNews_Domain_Model_File',
'foreign_table' => 'tx_kiddognews_domain_model_file',
'foreign_field' => 'foreign_uid',
'foreign_table_field' => 'foreign_table',
'maxitems' => 50,
'appearance' => array(
'newRecordLinkPosition' => 'bottom',
'collapseAll' => 1,
'expandSingle' => 0,
),
)
),
'images' => array(
'exclude' => 1,
'label' => 'images',
'config' => array(
'type' => 'inline',
'loadingStrategy' => 'proxy',
'foreign_class' => 'Tx_KiddogNews_Domain_Model_File',
'foreign_table' => 'tx_kiddognews_domain_model_file',
'foreign_field' => 'foreign_uid',
'foreign_table_field' => 'foreign_table',
'maxitems' => 50,
'appearance' => array(
'newRecordLinkPosition' => 'bottom',
'collapseAll' => 1,
'expandSingle' => 0,
),
)
),
Im Backend sieht das so aus:
Bild: myweblog.ch/…/screenshot2.png
Und in der DB so:
Bild: myweblog.ch/…/screenshot3.png
Gibt es keine Möglichkeit, dass man nicht nur die uid, sondern uid.row speichert?
Ich brauche das für meine Studium und bin für jede Hilfe Dankbar.
Als Gegenleistung werde ich die Semester-Arbeit frei verfügbar machen. Danke