页面属性

时间:2015-08-17 07:26:44

标签: typo3 typoscript typo3-6.2.x

主页语言的页面属性是7个选项卡。在每个翻译页面上只有4个标签。例如,“行为”选项卡被隐藏或丢失。在此选项卡上,我需要在一个特定项目中使用“链接目标”字段。

有没有办法显示此特定标签或仅显示字段链接目标?

提前感谢您的帮助。

2 个答案:

答案 0 :(得分:0)

您需要更新pages_language_overlay表的调色板(TCA - table configuration array)并添加该字段。最重要的是,您可能需要为链接字段配置翻译覆盖。

为此,您必须调整安装设置。

答案 1 :(得分:0)

所以我弄清楚它是如何工作的,但我很确定我做得太多了。无论如何,它可以帮助你面对同样挑战的人:

extTables.php

$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['eval'] = 'trim';
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['max'] = 80;
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['size'] = 50;
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['type'] = 'input';
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['exclude'] = 1;
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['label'] = 'LLL:EXT:cms/locallang_tca.xlf:pages.target';
$GLOBALS['TCA']['pages_language_overlay']['interface']['showRecordFieldList'] = 'title,hidden,starttime,endtime,keywords,description,abstract,target';
$GLOBALS['TCA']['pages_language_overlay']['interface']['showRecordFieldList'] = 'title,hidden,starttime,endtime,keywords,description,abstract,target';
$GLOBALS['TCA']['pages_language_overlay']['palettes']['5']['showitem'] = 'author,author_email,target';
$GLOBALS['TCA']['pages_language_overlay']['palettes']['links']['canNotCollapse'] = 1;
$GLOBALS['TCA']['pages_language_overlay']['palettes']['links']['showitem'] = 'alias;LLL:EXT:cms/locallang_tca.xlf:pages.alias_formlabel, --linebreak--, target;LLL:EXT:cms/locallang_tca.xlf:pages.target_formlabel, --linebreak--, url_scheme;LLL:EXT:cms/locallang_tca.xlf:pages.url_scheme_formlabel';
$GLOBALS['TCA']['pages_language_overlay']['types']['1']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['3']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['4']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['7']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['199']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['254']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['255']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';