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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

JQuery Tools


Reply

5 Posts   827 Views

Avatar
JPG

19 January 2011 at 1:58pm (Last edited: 19 January 2011 2:21pm), Community Member, 53 Posts

Has anyone had any major difficulties on using JQuery Tools? I cannot find any documentation on this - more specifically the Flowplayer module... Basically would like some guidance as to how I should go about using such libraries with SS.

Many thanks

Avatar
Ryan M.

19 January 2011 at 5:02pm Community Member, 309 Posts

Shouldn't be a problem - have you had any problems with it?
SS comes with some jquery libraries (sapphire/thirdparty/..), you could use these by default.

My preference is to link to the latest version hosted on Google though.

Avatar
JPG

19 January 2011 at 8:58pm Community Member, 53 Posts

Thanks Ryan
What do I do with something more bespoke like JQuery Tools or Flowplayer - do I add them to the /thirdparty? As I said before, I cannot seem to find any documentation on this subject.

Many thanks for your help :)

Avatar
Willr

19 January 2011 at 9:33pm Forum Moderator, 5511 Posts

Don't put them in sapphire or cms, keep all your javascript either in mysite/javascript or themes/yourtheme/javascript/ (or thirdparty) and link to it using <% require javascript(path/to/your/file.js) %> in your template.

Requiring a JS file - http://doc.silverstripe.org/sapphire/en/reference/requirements#including-inside-template-files
Tech discussion on JS - http://doc.silverstripe.org/sapphire/en/topics/javascript

Avatar
JPG

19 January 2011 at 10:08pm Community Member, 53 Posts

Thanks Willr, that's what I was looking for.

:)