如何在Typo3 V10中使用本地jQuery
Hallo我已经从Typo3 V9升级到Typo3 V10。现在,我在Typoscript中的jQuery配置不再起作用了。
page {
javascriptLibs {
jQuery = 1
jQuery.version = latest
jQuery.source = local
jQuery.noConflict = 0
}
}
我读到这是不弃用的,我应该使用以下选项之一:
- page.includejslibs
- page.includejsfooterlibs
- includejs includejs
- includejsfooter i in Incluctjsfooter i
我不知道它可以与typo3 v10安装中包含的本地jQuery文件一起使用。谁能告诉我应该如何工作?
Hallo I have upgraded from Typo3 v9 to Typo3 v10. Now my jquery configuration in typoscript is not working anymore.
page {
javascriptLibs {
jQuery = 1
jQuery.version = latest
jQuery.source = local
jQuery.noConflict = 0
}
}
I read that this is deprecated and I should use one of these options instead:
- page.includeJSLibs
- page.includeJSFooterlibs
- includeJS
- includeJSFooter
I don't get it to work with a the local jquery files that are included in the installation of typo3 v10. Can anyone tell me how this is supposed to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如您已经注意到的那样“>
page.javascriptlibs
用typo3v9 和为了进行平稳的更新,您应该检查与Typo3v9捆绑在一起的最后一个jQuery版本,然后下载并使用您提到的一个选项将其添加到您的页面中。 (或者整合CDN URL。)
As you have noticed
page.javascriptLibs
was deprecated with TYPO3v9 and dropped with TYPO3v10.For a smooth update you should check the last jQuery version which was bundled with TYPO3v9, then download that and add it to your page using one of the options you mentioned. (Alternatively integrate a CDN URL.)