1.在页面ext_tables.php,在$tca['table_name']['ctrl']这个数组中加上‘dividers2tabs’ => TRUE,
table_name 即插件对应数据库表名.
View Code PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | $TCA["'table_name"] = array ( "ctrl" => array ( 'title' => 'LLL:EXT:ext_quicklink/locallang_db.xml:tx_extquicklink_data', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array ( 'disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group', ), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_extquicklink_data.gif', 'dividers2tabs' => TRUE, ), "feInterface" => array ( "fe_admin_fieldList" => "sys_language_uid, l18n_parent, l18n_diffsource, hidden, starttime, endtime, fe_group, title, pageid, extraurl", ) ); |
2.在页面tca.php,在$TCA['table_name']['types']['0']['showitem'] 加上”–div–;TabName” 用逗号隔开其他元素.
View Code PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 | $TCA["tx_extquicklink_data"] = array ( "ctrl" => $TCA["tx_extquicklink_data"]["ctrl"], "interface" => array ( "showRecordFieldList" => "sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,endtime,fe_group,title,pageid" ), // ... "types" => array ( "0" => array("showitem" => "--div--;table1,sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1, title;;;;2-2-2,--div--;table2, pageid;;;;3-3-3") ), "palettes" => array ( "1" => array("showitem" => "starttime, endtime, fe_group") ) ); |
注意: 在我操作过程中, 添加一个–div–;table1 无效, 加上–div–;table2即可以成功显示. 不知道是不是Typo3系统必须要Tab在2个以上才显示.