[TYPO3-dev] Adding columns with palettes

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Mar 24 11:00:48 CET 2006


Hi!

I want to extend 'pages' with a field that has secondary options. Is this 
approach which uses a string as palette "number" ok?

t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('pages','tx_foobar_field;;tx_foobar_1;;1-1-1');
$TCA['pages']['palettes']['tx_foobar_1'] = Array(
  'showitem' => 'tx_foobar_secondary_field'
);

I apparently works in 3.8, but I'm unsure if the palette must be a number 
or not.

Masi




More information about the TYPO3-dev mailing list