[TYPO3-mvc] Overwriting TCA (fe_users)
Florian Staudacher
florian_staudacher at yahoo.de
Thu Jul 8 19:30:09 CEST 2010
Hi!
I have been following the list for quite some time and already played with
extbase and fluid little. Now I got to the point where I need to ask a
question in order to get on.
I want to extend fe_users' address property by making it a one-to-many
relation with a new table I introduced (so that one user can have multiple
addresses).
Therefore I put this im my extension's TCA:
---- snip
$tmp = array(
'address' => array(
'label' => 'Address',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_myext_domain_model_address',
'foreign_field' => 'user',
)
)
);
// this part is copied from extbase's tca
t3lib_div::loadTCA('fe_users');
t3lib_extMgm::addTCAcolumns('fe_users', $tmp, 1);
t3lib_extMgm::addToAllTCAtypes('fe_users','address');
---- snip
I also specified the address tca in a way that I can select existing users and
therefore attach the address to the user.
In the BE it all works fine (as far as I see), but in my FE extension the
attached addresses are not shown. The ObjectStorage array is simply empty.
Hopefully someone can help me with this.
Thanks,
Florian Staudacher
More information about the TYPO3-project-typo3v4mvc
mailing list