[TYPO3-english] Re: Re: Re: Re: How to extend tt_conent field in plugin backend module + TYPO3 6.2
Jainish Senjaliya
jainishsenjaliya at gmail.com
Thu Aug 28 11:57:18 CEST 2014
Hello Anupam Chatterjee,
Yes. i follow the link and also try to set as mentioned in link. but in my database its store full image path. Instead of image uid.
Following code i am using in my ext_table.php
$tempColumns = Array (
"tx_damdownloadlist_records" => Array (
"exclude" => 0,
"label" => "Images",
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'sys_file',
'prepend_tname' => TRUE,
'appearance' => array(
'elementBrowserAllowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
'elementBrowserType' => 'file'
),
'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
'show_thumbs' => '1',
'size' => '3',
'maxitems' => '200',
'minitems' => '0',
'autoSizeMax' => 40,
),
),
);
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns);
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"]["falfrontend_filelist"]="layout,select_key,pages";
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"]["falfrontend_filelist"]="tx_damdownloadlist_records;;;;1-1-1";
Note "
tx_damdownloadlist_records : This field is a tt_content field.
I want to store images uid [ uid of sys_file table ] in "tx_damdownloadlist_records"
It may be possible that. it may more then one images.
so i want to store like : 450,698,420
Let me know what i have to do.
Thanks,
Jainish
More information about the TYPO3-english
mailing list