Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » JQuery Tools

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

Page: 1
Go to End
Author Topic: 767 Views
  • JPG
    Avatar
    Community Member
    53 Posts

    JQuery Tools Link to this post

    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

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: JQuery Tools Link to this post

    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.

  • JPG
    Avatar
    Community Member
    53 Posts

    Re: JQuery Tools Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: JQuery Tools Link to this post

    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

  • JPG
    Avatar
    Community Member
    53 Posts

    Re: JQuery Tools Link to this post

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

    767 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.