如何在Typo3 V10中使用本地jQuery

发布于 2025-01-27 17:33:10 字数 463 浏览 4 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷爱 2025-02-03 17:33:10

正如您已经注意到的那样“> 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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文