简体   繁体   English

TYPO3新的内容类型图标未显示在页面预览窗口中

[英]TYPO3 New content type icons are not showing in page preview window

I have created my own CTypes and a custom Layout for backend page view and I'm struggling with one small thing: 我已经为后端页面视图创建了自己的CType和自定义布局,而我在努力做一件小事情:

My new content elements use TYPO3 built in icons. 我的新内容元素使用内置图标的TYPO3。 They are working fine in content selection: 他们在内容选择方面做得很好:

在此处输入图片说明

but don't get used in the Page view template layout. 但不要在页面视图模板布局中使用。 Instead default element icon is used. 而是使用默认元素图标。

Any idea why and how to fix this? 知道为什么以及如何解决这个问题吗?

PS: Can show the config, just request which ones exactly PS:可以显示配置,只需准确要求

To make this icon visible in those content lists too, you need to add it to the TCA . 为了使该图标在那些内容列表中也可见,您需要将其添加到TCA For example, in ext/my_extension/Configuration/TCA/Overrides/tt_content.php : 例如,在ext/my_extension/Configuration/TCA/Overrides/tt_content.php

$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['my_extension_content'] = 'icon_from_icon_registry';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM