[TYPO3-dev] Add Palettes to TCA

Thomas Peterson info at thomas-peterson.de
Fri Dec 30 16:37:14 CET 2005


Hi Ingmar,

I want extend the TCA for dam.

We can add temp columns to the tca with:
t3lib_extMgm::addTCAcolumns('tx_dam',$tempColumns,1);

but i can not add palettes for using in dam.
in dam we have:

'palettes' => array(
  '1' => array('showitem' => 'hidden,starttime, endtime, fe_group', 
'canNotCollapse' => '1'),

  '3' => array('showitem' => 'loc_desc', 'canNotCollapse' => '1'),
  '4' => array('showitem' => 'hpixels,vpixels', 'canNotCollapse' => '1'),
  '5' => array('showitem' => 'loc_country,loc_city', 'canNotCollapse' => 
'1'),
  '6' => array('showitem' => 'file_name,file_path', 'canNotCollapse' => 
'1'),
  '7' => array('showitem' => 'file_size,file_type,file_mime_type', 
'canNotCollapse' => '1'),
  '8' => array('showitem' => 'file_ctime,file_mtime', 'canNotCollapse' => 
'1'),
  '9' => array('showitem' => 'creator,publisher', 'canNotCollapse' => '1'),
  '10' => array('showitem' => 'width,height,height_unit', 'canNotCollapse' 
=> '1'),
  '12' => array('showitem' => 'file_creator,file_type_version', 
'canNotCollapse' => '1'),
  '13' => array('showitem' => 'date_cr,date_mod', 'canNotCollapse' => '1'),
  '14' => array('showitem' => 'hres,vres', 'canNotCollapse' => '1'),

  )

and i want to add with my extension:

  '33' => array('showitem' => 'tx_ccmetamp3_album', 'canNotCollapse' => 
'1'),
  '34' => array('showitem' => 'tx_ccmetamp3_year,tx_ccmetamp3_genres', 
'canNotCollapse' => '1'),

Can you understood me :-)

best regards
Thomas Peterson

> Hi Thomas,
>
> Thomas Peterson wrote:
>> I want to use Palettes for my Fields. But i have not Found a function to 
>> add this.
>
> Have you read the documentation on pallettes in the "TYPO3 Core API" 
> document [1]?
>
> What is exactly your problem? Isn't this rather a question for the english 
> user list?
>
> cheers,
> Ingmar
>
> [1] 
> http://typo3.org/documentation/document-library/doc_core_api/palettes_key_se/ 






More information about the TYPO3-dev mailing list