Plone: โ€‹โ€‹jQuery Update

Using the jQuery SlickGrid plugin with Plone 4.1 and trying to resize the grid column is this jQuery 1.4.4 error , which was fixed in later versions.

Is it possible to update the base version of jQuery, how is Plone used, and if so, how can this be done?

+4
source share
2 answers

Updating jQuery in Plone is not trivial, since many scripts (including JQueryTools integration) are dependent on jQuery 1.4. JQuery is part of Products.CMFPlone. Therefore, the update may interfere with the functions.

The Plone developers mailing list is discussing jQuery and jQuery UI.

Links on the Plone Developer Mailing List:

+5
source

You can easily override the jquery.js library (like any other file on the skin layer). You have 3 options for this:

  • quick: go to the Zope โ†’ portal_skins โ†’ custom management interface and use the drop-down menu in the upper right corner to add a new โ€œfileโ€. Id = jquery.js, File = desired jquery library.

  • correct: create a new package, register a new skin layer and place your jquery library there (taking care of renaming it to "jquery.js" if necessary).

  • another: override this file with z3c.jbot .

Do not edit the file in the file system directly, as someone suggested: this is not necessary, and this is very bad practice.

Additional Information:

+4
source

Source: https://habr.com/ru/post/1385297/


All Articles