[TYPO3-english] Automatically adding IRRE Record
Kay Strobach
typo3 at kay-strobach.de
Thu Feb 3 19:47:00 CET 2011
Hello Guys,
i have a TCEform based on fe_users, where an additional tab with a
tt_adress-form is added with irre.
As the form requires exactly one tt_adress record per fe_user i wondered
if it would be possible to add the form automatically?
Quick'n'Dirty:
Add JS and fire click on Button to add tt_adress record to form
Better Idea wizh TCA?
?
Current TCA Snapshot
$tempColumns = array (
'tx_ksfeuserextended_tt_address' => array (
'exclude' => 0,
'label' =>
'LLL:EXT:ks_fe_user_extended/locallang_db.xml:fe_users.tx_ksfeuserextended_tt_address',
'config' => array (
'type' => 'inline',
'foreign_table' => 'tt_address',
'foreign_field' => 'tx_ksfeuserextended_uid',
'foreign_table_where' => '',
'foreign_label' => 'name',
'foreign_sortby' => 'name',
'minitems'=>1,
'maxitems'=>1,
'appearance' => Array(
'useSortable' => 0,
'useCombination' => 0,
'newRecordLinkPosition' => 'bottom',
'newRecordLinkAddTitle' => 0,
'expandSingle' => TRUE,
'collapseAll' => FALSE,
#'expandSingle' => 1,
),
)
),
);
Thanks
Kay
[1]
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/4/2/#id4250279
More information about the TYPO3-english
mailing list