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.

Template Questions /

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

how to use jquery and lightbox clone - prettyPhoto


Go to End


2 Posts   3473 Views

Avatar
emil.blume

Community Member, 11 Posts

31 August 2009 at 6:52am

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

Community Member, 48 Posts

4 September 2009 at 2:49pm

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.