Cant use Lightbox clones
Permalink
Seems that there is a problem with using lightbox clones like PrettyPhoto or CeeBox with C5?
Im doing exactly as it says in the setup instructions, including import of jQuery, which I use without problem on my site.
This site is local and I begin to link in the .js-file with this:
<script type="text/javascript" src="http://192.168.1.2:8080/concrete5/concrete/js/jquery.prettyPhoto.js"></script>
This is AFTER the import of jQuery 1.3.2 lib. Note that I access the js-code when pasting it into the browser.
Then in document.ready() I try to init it with these lines:
Please ignore the php-tags
Doesnt matter which clone I try to implement and use, all I get is an Error in Firebugg saying:
Please ignore the php-tags
Im doing exactly as it says in the setup instructions, including import of jQuery, which I use without problem on my site.
This site is local and I begin to link in the .js-file with this:
<script type="text/javascript" src="http://192.168.1.2:8080/concrete5/concrete/js/jquery.prettyPhoto.js"></script>
This is AFTER the import of jQuery 1.3.2 lib. Note that I access the js-code when pasting it into the browser.
Then in document.ready() I try to init it with these lines:
$(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto(); });
Doesnt matter which clone I try to implement and use, all I get is an Error in Firebugg saying:
$("a[rel^='prettyPhoto']").prettyPhoto is not a function (no name)()concrete5 (line 281) (no name)()jquery-1.3.2.js (line 3032) each([function(), function(), function()], function(), undefined)jquery-1.3.2.js (line 692) ready()jquery-1.3.2.js (line 3031) (no name)()jquery-1.3.2.js (line 3056) [Break on this error] $("a[rel^='prettyPhoto']").prettyPhoto();