[TYPO3-ect] How to extend tt_conent field in plugin + TYPO3 6.2

Jainish Senjaliya jainishsenjaliya at gmail.com
Fri Aug 22 13:03:39 CEST 2014


Hello Sir,

I am trying to extend tt_content field in plugin. but its not working.

i am using following code in ext_table.php

= = = = = = = = = = =   CODE  BEGIN - EXT BASE = = = = = = = = = = = 

$tempColumns = array(
    'tx_damdownloadlist_records' => array(
        'exclude' => 0,
        'label' => 'title2',
        'config' => array(
            'type' => 'input'
        )
    )
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'tx_damdownloadlist_records;;;;1-1-1');

$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"]["FileList"]="layout,select_key,pages";
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"]["FileList"]="tx_damdownloadlist_records;;;;1-1-1"; 

= = = = = = = = = = =   CODE  END - EXT BASE = = = = = = = = = = = 

"FileList" IS STAND FOR EXTENSION KEY.


Same code in dam_frontend extension is working fine. but this is PI base extension,

Following code is for "dam_frontend" and this is working fine.

= = = = = = = = = = =   CODE  BEGIN - PI BASE = = = = = = = = = = = 


$tempColumns = Array (
	"tx_damdownloadlist_records" => Array (
		"exclude" => 0,
		"label" => "LLL:EXT:dam_frontend/locallang_db.php:tt_content.tx_damdownloadlist_records",
		"config" => Array (
			"type" => "group",
			"internal_type" => "db",
			"allowed" => "tx_dam",
			"size" => 10,
			"minitems" => 1,
			"maxitems" => 100,
			"show_thumbs" => 1,
		)
	),
);


t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY."_pi2"]="layout,select_key,pages";
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][$_EXTKEY."_pi2"]="tx_damdownloadlist_records;;;;1-1-1";

= = = = = = = = = = =   CODE  END - PI BASE = = = = = = = = = = = 


Can you please give me solution for access any one field in ext base plugin.




More information about the TYPO3-team-extension-coordination mailing list