TYPO3 EXT tx_news 和 Typoscript USER 多重集成 [英] TYPO3 EXT tx_news und typoscript USER multi integrations
问题描述
我通过 TS 在我的网站上输入多集成 tx_news 元素:https://docs.typo3.org/typo3cms/扩展/新闻/AdministratorManual/BestPractice/IntegrationWithTypoScript/Index.html
i input multi integrations tx_news elements on my site, via TS: https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/IntegrationWithTypoScript/Index.html
效果很好!但是分机在首页上一次又一次地加载了完整的 tx_news 库!即使新闻页面不会在 FE 中使用/加载即使不需要面团,也加载了分机...:/因此,网站变得非常缓慢.
it works fine! but the ext loaded the full tx_news libs again and again on the Frontpage! That even where the news page will not be used / loaded in FE even where the dough is not needed, the ext is loaded... :/ Thus, the website has become very slow.
如何包含多个元素?
在 AdminPanel 中查看加载的 FE 代码代码中TYPO3\CMS\Extbase\Core\Bootstrap"为280,代码中Bootstrap"超过600
in the AdminPanel see i the loaded FE code "TYPO3\CMS\Extbase\Core\Bootstrap" is 280 in teh code and "Bootstrap" is over600 in the code
我注释掉信息,然后网站正常加载.我能做什么?谢谢!
I comment out the info, then the website loads normally. what can i do? Thanks!
推荐答案
只是对您评论的改写.使用这样的代码
Just a rewording of your comment. Using a code like this
page.10 = FLUIDTEMPLATE
page.10 {
variables {
fo = USER
fo {
...
}
}
}
将执行 USER
(或任何其他 cObj),无论是否在模板中使用.所以总是这样的 TS
will execute the USER
(or any other cObj), no matter if is then used in the template at all. Therefore always a TS like this
lib.fo = USER
lib.fo {
...
}
并使用 <f:cObject TypscriptObjectPath="lib.fo"/>
请将答案标记为解决方案,谢谢
Please mark the answer as solution, thanks
这篇关于TYPO3 EXT tx_news 和 Typoscript USER 多重集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!