21279 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 661 Views |
-
JQuery Tools

19 January 2011 at 1:58pm Last edited: 19 January 2011 2:21pm
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
-
Re: JQuery Tools

19 January 2011 at 5:02pm
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.
-
Re: JQuery Tools

19 January 2011 at 8:58pm
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
-
Re: JQuery Tools

19 January 2011 at 9:33pm
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
| 661 Views | ||
|
Page:
1
|
Go to Top |



