jQuery 1.11 for Concrete 5.6
Permalink
Hello all,
Would love to find out if there's any way possible to update Concrete 5.6 jQuery to 1.11, without breaking the backend.
The reason being I have an old site for which I'd like to recreate the CSS using Bootstrap 3 (requiring jQuery 1.11 or higher).
I think an update to Concrete 5.7 wouldn't be feasible, since its a large complex Multi-Lingual site with various Addons. From my understanding, I can't just export the database from 5.6 to 5.7.
I've already tried using jQuery 1.11 together with jQuery Migrate, but this causes Backend Bugs.
Really appreciate any help!
Would love to find out if there's any way possible to update Concrete 5.6 jQuery to 1.11, without breaking the backend.
The reason being I have an old site for which I'd like to recreate the CSS using Bootstrap 3 (requiring jQuery 1.11 or higher).
I think an update to Concrete 5.7 wouldn't be feasible, since its a large complex Multi-Lingual site with various Addons. From my understanding, I can't just export the database from 5.6 to 5.7.
I've already tried using jQuery 1.11 together with jQuery Migrate, but this causes Backend Bugs.
Really appreciate any help!
Hi,
Thanks so much for replying.
Is there perhaps a way to program the backend to define which jQuery version should be loaded, according to whether the User's logged in or not?
Still not an ideal solution though. Do you think there's any other way, to get the two different jQuerys to run simultaneously, without causing conflict?
Thanks so much for replying.
Is there perhaps a way to program the backend to define which jQuery version should be loaded, according to whether the User's logged in or not?
Still not an ideal solution though. Do you think there's any other way, to get the two different jQuerys to run simultaneously, without causing conflict?
All you can do is write custom code in elements\header_required.php to load the version of Jquery you want when needed.
Running 2 versions of jQuery simultaneously is not doable, you will always have problems.
Are you sure your site requires version 1.11 of Jquery? What script do you have that requires it?
Running 2 versions of jQuery simultaneously is not doable, you will always have problems.
Are you sure your site requires version 1.11 of Jquery? What script do you have that requires it?
I was hoping I might be able to get 2 versions of jQuery running simultaneously using jQuery noConflict.
I'm using Bootstrap 3, which requires jQuery 1.9 or above. Concrete 5.6.3 that I'm using has jQuery 1.7.2.
I'm using Bootstrap 3, which requires jQuery 1.9 or above. Concrete 5.6.3 that I'm using has jQuery 1.7.2.
Sorry to ask the obvious but are you sure you really need jQuery 1.11. I know bootstrap does use it but unless you are using any of their javascript code, you don't need jQuery (if you're only using their css for instance).
What's more, some of their javascript tools might work with jQuery 1.7.2. Did you test it?
What's more, some of their javascript tools might work with jQuery 1.7.2. Did you test it?
Thanks, but yeah, I do need jQuery 1.9 at least for Bootstrap 3. I'm using Bootstrap thoroughly, with several of its Javascript Components.
I might have fixed the issue using jQuery 1.9.1 and jQuery Migrate 2.1. It seems ok, other than the backend hanging on the page_controls_menu_js for a while.
I might have fixed the issue using jQuery 1.9.1 and jQuery Migrate 2.1. It seems ok, other than the backend hanging on the page_controls_menu_js for a while.
Well if it works ok, maybe you should consider writing about your experience in the how-to section. I'm sure many would find this useful
You can't do that, you will break the back-end BUT what you can do is use Jquery 1.11 in certain circumstances:
1- user is not logged in
2- user is logged in with no dashboard or edit rights
You would need to modify the file concrete/elements/header_required.php to load your version of jquery instead of core one