[TYPO3-dam] fields in process form
georg kuehnberger
georg at georg.org
Sun Jul 22 01:59:17 CEST 2007
ben van 't ende [netcreators] wrote:
> hi,
> is it possible to reduce the number of fields in the process form after
> uploading? for basic users the number of fields is quite intimidating.
> gRTz
> ben
Sure it is; just modify the TCA of tx_dam;
You will find a modification example in
ext/dam_demo/fields/ext_tables.php
hth, regards georg;
PS: below I attached a simple example for your convenience;
=================================
// load the TCA
t3lib_div::loadTCA('tx_dam');
// Customize available fields in the Media > File - Edit Dialog
$tx_dam_all = '
--div--;LLL:EXT:dam/locallang_db.xml:tx_dam_item.div_overview,
media_type;;;;3-3-3,
thumb,
title;;;;3-3-3,
keywords,
description,
caption,
alt_text,
ident,
creator,
publisher,
copyright,
instructions,
loc_country,
loc_desc,
file_usage,
--div--;LLL:EXT:dam/locallang_db.xml:tx_dam_item.div_extraMeta,
meta,
';
// Customize available fields for different Filetypes
$TCA['tx_dam']['types'] = array(
/* undefined */
'0' => array('showitem' => $tx_dam_all),
/* text */
'1' => array('showitem' => $tx_dam_all),
/* image */
'2' => array('showitem' => $tx_dam_all),
/* audio */
'3' => array('showitem' => $tx_dam_all),
/* video */
'4' => array('showitem' => $tx_dam_all),
/* interactive */
'5' => array('showitem' => $tx_dam_all),
/* service */
'6' => array('showitem' => $tx_dam_all),
/* font */
'7' => array('showitem' => $tx_dam_all),
/* model */
'8' => array('showitem' => $tx_dam_all),
/* dataset */
'9' => array('showitem' => $tx_dam_all),
/* collection */
'10' => array('showitem' => $tx_dam_all),
/* software */
'11' => array('showitem' => $tx_dam_all),
/* application */
'12' => array('showitem' => $tx_dam_all),
);
// caption + instructions should be only 2 lines
$TCA['tx_dam']['columns']['caption']['config']['rows'] = 1;
$TCA['tx_dam']['columns']['instructions']['config']['rows'] = 1;
// Customize available fields in the Upload Index-Dialog
$TCA['tx_dam']['txdamInterface']['index_fieldList'] = '
title,
keywords,
description,
caption,
alt_text,
ident,
creator,
publisher,
copyright,
instructions,
loc_country,
loc_desc,
';
More information about the TYPO3-project-dam
mailing list