[TYPO3-dam] Extending DAM with a Filelist Field
Hendrik Reimers
h.reimers at neonaut.de
Tue Feb 10 15:17:19 CET 2009
Hi,
i'm trying to extend the Datafields for the Files. That works with a little
Extension great, but i want to insert a filelist...
If i create a normal filelist like below typo3 is copying the files into the
extension upload folder, but i want the filelist field
like the dam_ttcontent extension is using.
my problem is that i have no idea how to insert a filegroup / filelist like
dam_ttcontent ...
thanks...
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$tempColumns = array (
'tx_neodamext_neo_doc_links' => array (
'exclude' => 0,
'label' =>
'LLL:EXT:neo_dam_ext/locallang_db.xml:tx_dam.tx_neodamext_neo_doc_links',
'config' => array (
'type' => 'group',
'internal_type' => 'file',
'allowed' => '',
'disallowed' => 'php,php3',
'max_size' =>
$GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
'uploadfolder' => 'uploads/tx_neodamext',
'size' => 5,
'minitems' => 0,
'maxitems' => 10,
)
),
);
t3lib_div::loadTCA('tx_dam');
t3lib_extMgm::addTCAcolumns('tx_dam',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('tx_dam','--div--;LLL:EXT:neo_dam_ext/locallang_db.xml:tx_neodamext_div,
tx_neodamext_neo_doc_links');
// Add fields to DAM indexing System
$TCA['tx_dam']['txdamInterface']['index_fieldList'] .=
','.implode(",",array_keys($tempColumns));
?>
More information about the TYPO3-project-dam
mailing list