简体   繁体   English

将自定义模板文件添加到typo3新闻扩展

[英]Add custom template file to typo3 news extension

I need to add own file in typo3 news extension. 我需要在typo3新闻扩展中添加自己的文件。 At this moment I try to add: 现在,我尝试添加:

<numIndex index="482">
                                        <numIndex index="0">Custom</numIndex>
                                        <numIndex index="1">News->customList</numIndex>
                                    </numIndex>

In file: Configuration/FlexForms/flexform_news.xml And also I try to create files Custom.html in: 在文件中:Configuration / FlexForms / flexform_news.xml并且我也尝试在以下位置创建文件Custom.html:

Resources/Private/Templates/News
Resources/Private/Templates/Styles/Twb/Templates/News

Unfortunately it not work. 不幸的是,它不起作用。 Typo3 still show error like that: Oops, an error occurred! Typo3仍然显示如下错误:糟糕,发生了错误! Code: 20190918154251f8d68c46 Anyone know, what I doing wrong? 代码:20190918154251f8d68c46谁知道,我做错了什么? I need only to add simple html file to custom "What to display" in typo3 admin. 我只需要在typo3 admin中向自定义“要显示的内容”添加简单的html文件。

Do you try to add further templates to the selection of layout of news for editors? 您是否尝试为编辑的新闻布局选择添加更多模板?

This can be done with adding some page TSconfig 这可以通过添加一些页面TSconfig来完成

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

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