tt_address:更新到Typo3 6.2后,后端未显示扩展字段

时间:2016-02-23 10:12:47

标签: typo3-6.2.x kickstarter

我有Typo3 6.2的后端问题和我的tt_address扩展字段:
在Typo3 4.5中,我扩展了tt_address数据库字段,并使用kickstarter构建了一个小扩展。更新到Typo3 6.2后,这些字段在后端消失,所以我不能再编辑它们了 在前端,一切都很好,所有领域都在那里 任何想法,我如何在后端再次访问这些字段?
这是我的ext_tables.php的内容:

if (!defined('TYPO3_MODE')) { die ('Access denied.'); }

$tempColumns = array (
    'tx_ttaddressextended_kuerzel' => array (       
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_kuerzel',      
        'config' => array (
            'type' => 'input',  
            'size' => '30', 
            'max' => '2',
        )
    ),
    'tx_ttaddressextended_kurzwahl' => array (      
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_kurzwahl',     
        'config' => array (
            'type' => 'input',  
            'size' => '30',
        )
    ),
    'tx_ttaddressextended_by_tema' => array (       
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_by_tema',      
        'config' => array (
            'type' => 'input',  
            'size' => '30',
        )
    ),
    'tx_ttaddressextended_ausbildung' => array (        
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_ausbildung',       
        'config' => array (
            'type' => 'text',
            'cols' => '30',
            'rows' => '5',
            'wizards' => array(
                '_PADDING' => 2,
                'RTE' => array(
                    'notNewRecords' => 1,
                    'RTEonly'       => 1,
                    'type'          => 'script',
                    'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
                    'icon'          => 'wizard_rte2.gif',
                    'script'        => 'wizard_rte.php',
                ),
            ),
        )
    ),
    'tx_ttaddressextended_abschluss' => array (     
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_abschluss',        
        'config' => array (
            'type' => 'input',  
            'size' => '30',
        )
    ),
    'tx_ttaddressextended_sprachen' => array (      
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_sprachen',     
        'config' => array (
            'type' => 'input',  
            'size' => '30',
        )
    ),
    'tx_ttaddressextended_laufbahn' => array (      
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_laufbahn',     
        'config' => array (
            'type' => 'text',
            'cols' => '30',
            'rows' => '5',
            'wizards' => array(
                '_PADDING' => 2,
                'RTE' => array(
                    'notNewRecords' => 1,
                    'RTEonly'       => 1,
                    'type'          => 'script',
                    'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
                    'icon'          => 'wizard_rte2.gif',
                    'script'        => 'wizard_rte.php',
                ),
            ),
        )
    ),
    'tx_ttaddressextended_auszeichnungen' => array (        
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_auszeichnungen',       
        'config' => array (
            'type' => 'text',
            'cols' => '30',
            'rows' => '5',
            'wizards' => array(
                '_PADDING' => 2,
                'RTE' => array(
                    'notNewRecords' => 1,
                    'RTEonly'       => 1,
                    'type'          => 'script',
                    'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
                    'icon'          => 'wizard_rte2.gif',
                    'script'        => 'wizard_rte.php',
                ),
            ),
        )
    ),
    'tx_ttaddressextended_besondere_projekte' => array (        
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_besondere_projekte',       
        'config' => array (
            'type' => 'text',
            'cols' => '30',
            'rows' => '5',
            'wizards' => array(
                '_PADDING' => 2,
                'RTE' => array(
                    'notNewRecords' => 1,
                    'RTEonly'       => 1,
                    'type'          => 'script',
                    'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
                    'icon'          => 'wizard_rte2.gif',
                    'script'        => 'wizard_rte.php',
                ),
            ),
        )
    ),
    'tx_ttaddressextended_aktiv' => array (     
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_aktiv',        
        'config' => array (
            'type' => 'text',
            'cols' => '30',
            'rows' => '5',
            'wizards' => array(
                '_PADDING' => 2,
                'RTE' => array(
                    'notNewRecords' => 1,
                    'RTEonly'       => 1,
                    'type'          => 'script',
                    'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
                    'icon'          => 'wizard_rte2.gif',
                    'script'        => 'wizard_rte.php',
                ),
            ),
        )
    ),
    'tx_ttaddressextended_interessen' => array (        
        'exclude' => 0,     
        'label' => 'LLL:EXT:tt_address_extended/locallang_db.xml:tt_address.tx_ttaddressextended_interessen',       
        'config' => array (
            'type' => 'text',
            'cols' => '30',
            'rows' => '5',
            'wizards' => array(
                '_PADDING' => 2,
                'RTE' => array(
                    'notNewRecords' => 1,
                    'RTEonly'       => 1,
                    'type'          => 'script',
                    'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
                    'icon'          => 'wizard_rte2.gif',
                    'script'        => 'wizard_rte.php',
                ),
            ),
        )
    ),
);

//t3lib_div::loadTCA('tt_address');
if (version_compare(TYPO3_branch, '6.1', '<')) {
    t3lib_div::loadTCA('tt_content');
}
t3lib_extMgm::addTCAcolumns('tt_address',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('tt_address',
  'tx_ttaddressextended_kuerzel;;;;1-1-1, 
   tx_ttaddressextended_kurzwahl, 
   tx_ttaddressextended_by_tema, 
   tx_ttaddressextended_ausbildung;;;richtext[]:rte_transform[mode=ts], 
   tx_ttaddressextended_abschluss, 
   tx_ttaddressextended_sprachen, 
   tx_ttaddressextended_laufbahn;;;richtext[]:rte_transform[mode=ts], 
   tx_ttaddressextended_auszeichnungen;;;richtext[]:rte_transform[mode=ts], 
   tx_ttaddressextended_besondere_projekte;;;richtext[]:rte_transform[mode=ts], 
   tx_ttaddressextended_aktiv;;;richtext[]:rte_transform[mode=ts], 
   tx_ttaddressextended_interessen;;;richtext[]:rte_transform[mode=ts]'
);

1 个答案:

答案 0 :(得分:0)

相反,类t3lib_extMgm尝试使用ExtensionManagementUtility:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_address', $tempColumns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_address', '...');

ExtensionManagementUtility Class Reference >>