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.

Template Questions

how to use jquery and lightbox clone - prettyPhoto


Reply

2 Posts   2697 Views

Avatar
emil.blume

31 August 2009 at 6:52am Community Member, 11 Posts

Hi,

what would be the best way to use jquery and jQuery lightbox clone - prettyPhoto ?

I mean in which files should I place the javascript files, etc? e.g. for instance Page.ss

Since I have seen things like
/themes/myTheme/lib/jquery-1.3.2.min.js
in some silverstripe installations, I am not really shure why not to point to
/jsparty/jquery/jquery.js

Avatar
keeny

4 September 2009 at 2:49pm Community Member, 48 Posts

Hiya Emil,

Yeah - I quite often put this at the top of my Page.ss

<head>
<script type="text/javascript" src="jsparty/jquery/jquery-packed.js"></script>

...
</head>

Not sure if it's good practice or not but I don't see why not to use the files if they're there. Well.... until the locations change in 2.4 anyway!

Barry.