[TYPO3-mvc] mm relation to foreign table static_countries does not work properly

Sebastian Schreiber me at schreibersebastian.de
Sun Jan 8 13:56:41 CET 2012


I guess you have to change the foreign_table to static_countries.
And you have to create a model for the static_country.
Have a look at the extension extbase_staticinfotables for that.

The TCA-Configuration is very important for the persistence management 
of extbase.


Am 08.01.2012 13:35, schrieb Domi:
>
>> How does your tca-configuration look like?
>
> I havent touched the TCA for now, so it lookes like it got generated 
> from extension_builder:
>
> 'countries' => array(
>             'exclude' => 0,
>             'config' => array(
>                 'type' => 'select',
>                 'foreign_table' => 'tx_myext_domain_model_country',
>                 'MM' => 'tx_myext_client_country_mm',
>                 'size' => 10,
>                 'autoSizeMax' => 30,
>                 'maxitems' => 9999,
>                 'multiple' => 0,
>                 'wizards' => array(
>                     '_PADDING' => 1,
>                     '_VERTICAL' => 1,
>                     'edit' => array(
>                         'type' => 'popup',
>                         'title' => 'Edit',
>                         'script' => 'wizard_edit.php',
>                         'icon' => 'edit2.gif',
>                         'popup_onlyOpenIfSelected' => 1,
>                         'JSopenParams' => 
> 'height=350,width=580,status=0,menubar=0,scrollbars=1',
>                         ),
>                     'add' => Array(
>                         'type' => 'script',
>                         'title' => 'Create new',
>                         'icon' => 'add.gif',
>                         'params' => array(
>                             'table' => 'tx_myext_domain_model_country',
>                             'pid' => '###CURRENT_PID###',
>                             'setValue' => 'prepend'
>                             ),
>                         'script' => 'wizard_add.php',
>                     ),
>                 ),
>             ),
>         ),
>
> Thanks for your help,
> Dominic
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675



More information about the TYPO3-project-typo3v4mvc mailing list