简体   繁体   English

TYPO3 newsslider用于新闻系统扩展4.0.0

[英]TYPO3 newsslider for news system extension 4.0.0

Is there a way to have newsslider extension working with the latest tx_news(news system) 4.0.0 on a fresh installed typo3 7.6.0 besides digging into code? 除了深入研究代码之外,是否有办法使Newsslider扩展程序在最新安装的typo3 7.6.0上与最新的tx_news(新闻系统)4.0.0一起使用? The extension installation warning says that it requires a manual intervention? 扩展安装警告说需要手动干预? The page where the plugin is inserted gives Fatal error: Call to a member function wrapClickMenuOnIcon() on null in typo3conf/ext/newsslider/Classes/Hooks/PageLayoutView.php on line 252 viewed in backend. 插入插件的页面出现致命错误:在后端查看的第252行上的typo3conf / ext / newsslider / Classes / Hooks / PageLayoutView.php中的null上调用成员函数wrapClickMenuOnIcon()。

What is the solution for having any kind of a newsslider with above typo3 version and news system version? 具有以上typo3版本和新闻系统版本的任何新闻滑块的解决方案是什么?

As written already in the comment, the best way is to use a templateLayout. 正如注释中已写的那样,最好的方法是使用templateLayout。

Add the following into the Page TsConfig : 将以下内容添加到页面TsConfig中

tx_news.templateLayouts {
       10 = Slider
}

And then you can select the entry "Slider" in the plugin. 然后,您可以在插件中选择条目“ Slider”。 Inside the template, you can now check {settings.templateLayout} by using a <f:if> and change the markup you need for the slider. 现在,在模板内部,您可以使用<f:if>检查{settings.templateLayout}并更改滑块所需的标记。

The great advantages using this way are: 使用这种方式的巨大优势是:

  • No additional dependencies to another extension 没有其他扩展依赖
  • Use the jquery or any JS library which fits best 使用最合适的jquery或任何JS库

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

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