[TYPO3-dev] how to get complete TCA after extending a table?
François Suter
fsu-lists at cobweb.ch
Fri Nov 11 13:17:37 CET 2011
Hi Bernd,
> in an extension I extended an existing table with further fields as other
> extensions do also.
>[snip]
You may want to take a look at extension "examples" which - amongst
others - extends table fe_users. If you look at file ext_tables.php you
will see that the new fields are first defined in an array
($tempColumns) and are then added with the 3 following steps:
t3lib_div::loadTCA('fe_users');
t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_users',
'tx_examples_options;;;;1-1-1, tx_examples_special');
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-dev
mailing list