Matthew Trevor
Matthew Trevor

Reputation: 14962

Plone: Upgrading jQuery

Using the jQuery SlickGrid plugin with Plone 4.1 and trying to resize a grid column trips up this jQuery 1.4.4 error, which has been fixed in more recent versions.

Is it possible to upgrade the core version of jQuery as used by Plone, and if so, how can this be done?

Upvotes: 4

Views: 1278

Answers (2)

Sylvain Boureliou
Sylvain Boureliou

Reputation: 176

Updating jQuery in Plone is not trivial because many scripts (including the integration of JQueryTools) depend on jQuery 1.4. JQuery is part of Products.CMFPlone. Thus, the update may break features.

Discussions are underway on the Plone developers mailing list about jQuery and jQuery UI.

Links on the Plone developers mailing list:

Upvotes: 5

Giacomo Spettoli
Giacomo Spettoli

Reputation: 4496

You can override the library jquery.js quite easly (like any other file in a skin layer). You have 3 options for doing that:

  1. the fast one: go to Zope Management Interface -> portal_skins -> custom and using the dropdown menu in the top-right corner add a new "File". Id = jquery.js, File = your desired jquery library.

  2. the correct one: create a new package, register a new skin layer and put your jquery library in there (taking care of renaming it in "jquery.js" if necessary).

  3. the other: override that file using z3c.jbot.

Do not edit the file in the file system directly as someone suggested: this is unnecessary and it's a very bad practice.

More info:

Upvotes: 4

Related Questions