[TYPO3-dev] addToAllTCAtypes breaks tabs for ext dam_ttnews

Steffen Gebert steffen at steffen-gebert.de
Tue Jan 6 16:22:44 CET 2009


Hi list,

I hope you can help me - I spent the whole day, but all the TCA stuff with TCEforms is quite complex.. :-( I hope anybody of you already had this problem.

The extension dam_ttnews adds several fields to tt_news records. But one (tx_damnews_dam_description) breaks the tab structure.

Instead of tabs
General | Special | Media | Categories & Relations | Access |Extended
i get only two tabs
General | Special
where all fields from lost tabs are under Special-tab.

dam_ttcontent's ext_tables.php (extract):
$tc = array(
  'tx_damnews_dam_images' => txdam_getMediaTCA('image_field', 'tx_damnews_dam_images'),
  'tx_damnews_dam_description' => array (
    'exclude' => 1,
    'label' => 'LLL:EXT:dam_ttnews/locallang_db.xml:tt_news.tx_damnews_dam_description',
    'config' => array (
      'type' => 'user',
      'userFunc' => 'EXT:dam_ttnews/class.user_dam.php:user_class->userTCAformDAM',
      'noTableWrapping' => false,
      'readOnly' => true
    )
  )
);

$tc['tx_damnews_dam_images']['exclude'] = 1;
...
t3lib_div::loadTCA('tt_news');
t3lib_extMgm::addTCAcolumns('tt_news', $tc, 1);
t3lib_extMgm::addToAllTCAtypes('tt_news', 'tx_damnews_dam_description;;;;1-1-1', '', 'after:imagecaption');

The insertion by addToAllTCAtypes (last line) breaks the the tabs.

Hope you can help! I use 4.3-trunk and DAM-trunk

BIG THANKS!
Steffen




More information about the TYPO3-dev mailing list