Home > Blockchain >  How to use local jquery in Typo3 v10
How to use local jquery in Typo3 v10

Time:05-10

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?

CodePudding user response:

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.)

  • Related