Working on a Freeway6/WebYep site with on the homepage carousel2.
My client wants to have Lightbox or Fancybox to increase the image size.
When I install Lightbox or Fancybox the carousel stops working.
Use a lightbox that is based on Prototype rather than jQuery. They don’t get along well with one another.
Walter
On Apr 27, 2013, at 9:49 AM, b8 wrote:
Working on a Freeway6/WebYep site with on the homepage carousel2.
My client wants to have Lightbox or Fancybox to increase the image size.
When I install Lightbox or Fancybox the carousel stops working.
Hi
This will be down to a few reasons.
Both fancy box and Lightbox (Version 2.5) are jQuery based, Carousel is not, its’ a prototype scriptaculous based. If you are using version 2.0.5 of Lightbox which is scriptaculous,.
The next problem is that WebYep will automatically include the two library references in the head of your document. Which isn’t (with this scenario) wanted because the carousel has already done that. So you will need to use the WebYep config action and disable the automatic inclusion of the scriptaculous library references.
Theres also one more problem, from what I can recall there is a compatibility problem with carousel and lightbox 2.0.5. I have not tested this recently so I have no idea if it still exists so be aware that it still may not function.
If you want to download lightbox 2.0.5 (pre jQuery version) then you can download it from here:
Just remember, if you do turn the automatic inclusion of the scripty libraries off, from within the webyep-config action, you will need to manually add it back into any page that you require the light box to function by either using a freeway effects action which will add those libraries or by using Walter prototype scriptaculous actions.
i´m facing a similar problem: I use WebYep and my Website has a few Jquery-Plugins.
So i decided to go with the latest version of the lightbox…2,5+, cause it´s also jquery-driven.
But once i upload the lightbox-folder into the “opt”-folder, all Jquery-Plugins stop working.
I read above that i have to change the webYeps auto-inclusion of prototype.js, but i have no glue how to do that.
Can please somebody guide my through?
PS: u gotta excuse my english, i´m austrian
cheers, Jay
The WebYep config action is a folder action.
You apply it to the top folder in your site panel (on the left hand side) within Freeway
Then if you are using the latest version of Lightbox (2.5 and above) turn off the automatic inclusion of Prototype and Scripty. This is because 2.5 is using jQuery. Then press the create config button at the bottom of the action and replace your old config-file within the WebYep system folder.
Please Note: you will need to include the jQuery library in the head part of your page for lightbox 2.5 to function.