Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Silverstripe 2.x and jQuery 7.x (needs updating)


Go to End


5 Posts   1380 Views

Avatar
Johan

Community Member, 49 Posts

13 March 2012 at 4:28am

Edited: 13/03/2012 4:29am

Hi

The version of jQuery shipped with the latest download is only v1.4.2.

jQuery v7.x is a major release. Could you make the CMS compatible with 1.7.x because that version causes CMS functionality to fail when overwriting the original source files with he latest jQuery file?

Version 1.7.x will be required for things such as Fancybox 2 etc...

Thanks

Avatar
swaiba

Forum Moderator, 1899 Posts

13 March 2012 at 4:43am

Hi Johan,

thanks for posting your input, but if you would like to influence dev descisions at silverstripe, rather than ask for help
please raise the issue on open.silverstripe.org or https://groups.google.com/forum/?fromgroups#!forum/silverstripe-dev

Also note there is nothing to stop you using the jQuery you wish in "non-conflict" mode to achieve your goals I think

Avatar
Johan

Community Member, 49 Posts

16 May 2012 at 2:59am

Also note there is nothing to stop you using the jQuery you wish in "non-conflict" mode to achieve your goals I think

non-conflict is not designed to do that so i am not sure you can. Anyone?

Avatar
swaiba

Forum Moderator, 1899 Posts

16 May 2012 at 3:33am

OK, I'll reword that a bit...

you are not going to get the CMS using a different version of jQuery (without a large effort)
but you can use anyversion of jQuery in "non-conflict mode" in order to use a certain library needed that version so it doesn't conflict with the version the CMS is using

But again if you want the CMS to use a differetn version of jQuery I advise you join the dev group and put forward your suggestion there

Avatar
3dgoo

Community Member, 135 Posts

16 May 2012 at 12:09pm

What version of jQuery the CMS uses and what version the front end of the website uses can be completely different.

Do not overwrite the CMS version of jquery, or any other CMS files. You should not be changing (or adding) any files inside the cms or sapphire directories.

Put your javascript inside mysite/javascript and include that. That way you can use whatever version you want.