I followed the 'Creating an Extbase extension' in the TYPO3 documentation and build the Product Overview, all working fine.
The next step teaches 'Extending an Extbase extension' and also that works but the last step changes the TCA in order to select stored categories rather then add them inline ...
The list displays the selection possibility with the created categories and I can select them but they do not save, if I check the db the category is saved but it does not show up in the backend, and typo3 does not recognize the category saved in the field ...
can anyone give the final steps needed to make it work ... (I already installed, dis-installed, cleared cache, cleaned with install tool etc. multiple times...)
this is my tca:
/* original working inline code
'categories' => [
'exclude' => 1,
'label' => 'LLL:EXT:productoverview/Resources/Private/Language/locallang_db.xlf:tx_productoverview_domain_model_product.categories',
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_productoverview_domain_model_category',
'foreign_field' => 'product',
'maxitems' => 9999,
'appearance' => [
'collapseAll' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1
],
],
],
suggested category selection */
'categories' => [
'exclude' => 0,
'label' => 'LLL:EXT:productoverview/Resources/Private/Language/locallang_db.xml:tx_productoverview_domain_model_product.categories',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_productoverview_domain_model_category',
'foreign_field' => 'product',
'maxitems' => 9999,
],
],
],
];
update: I found this answer of 2 years ago which gives an error in v7.6.14 but explains a lot, I still hope to have a much simpler answer here ...
foreign_table
? – René Pflamm'foreign_table' => 'tx_productoverview_domain_model_category'
– webMan