[TYPO3-dev] Add Palettes to TCA
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Fri Dec 30 16:56:48 CET 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Thomas,
int ext_tables.php try something like this:
global $TCA; // superflous ????
t3lib_div::loadTCA("tx_dam");
$TCA['tx_dam']['palettes'] = $yourArray;
Or something similar with merging old and new palettes.
Regards
Elmar
Thomas Peterson schrieb:
> 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/
>
>
>
- --
Climate change 2005: Mexico, Guatemala, New Orleans, Sahel, Bangladesh,
Spain, Portugal, Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDtVjAO976RNoy/18RAnKxAJ9Yc3AiSfa5hn9m8xqRufeQRGJ4/ACfdmdQ
wuczCbDhF1dDq0filbHOBcs=
=0npL
-----END PGP SIGNATURE-----
More information about the TYPO3-dev
mailing list