您可以在文件typo3/sysext/cms/tbl_tt_content.php 和typo3/sysext/cms/tbl_cms.php 中找到TYPO3 后端的TCA。
在这里您可以找到 header_link 示例。
TYPO3 6.1及更低版本的解决方案:
'header_link' => array(
'label' => 'LLL:EXT:cms/locallang_ttc.xml:header_link',
'exclude' => 1,
'config' => array(
'type' => 'input',
'size' => '50',
'max' => '256',
'eval' => 'trim',
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:cms/locallang_ttc.xml:header_link_formlabel',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
),
),
'softref' => 'typolink',
),
),
TYPO3 6.2.x - 7.6.x 的解决方案:
'header_link' => array(
'label' => 'LLL:EXT:cms/locallang_ttc.xml:header_link',
'exclude' => 1,
'config' => array(
'type' => 'input',
'size' => '50',
'max' => '256',
'eval' => 'trim',
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:cms/locallang_ttc.xml:header_link_formlabel',
'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif',
'module' => array(
'name' => 'wizard_element_browser',
'urlParameters' => array(
'mode' => 'wizard',
'act' => 'page'
)
),
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
),
),
'softref' => 'typolink',
),
),
TYPO3 8.x 的解决方案:
'header_link' => array(
'label' => 'LLL:EXT:cms/locallang_ttc.xml:header_link',
'exclude' => 1,
'config' => array(
'type' => 'input',
'renderType' => 'inputLink',
),
),