Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Jquery Blues

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

Page: 1
Go to End
Author Topic: 1423 Views
  • Boundbystars
    Avatar
    Community Member
    4 Posts

    Jquery Blues Link to this post

    I am trying to get some awesome jquery stuff to take place on my web. But I cannot for the life of me figure out how to get jquery to play nice with SS... Has anyone done this successfully? Tips, tricks, or general sympathy will be muchly appreciated.

    Thanks,

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Jquery Blues Link to this post

    Hi bound

    I managed to get Jquery working without much trouble, how are you trying to do it?

  • Boundbystars
    Avatar
    Community Member
    4 Posts

    Re: Jquery Blues Link to this post

    I put it into the JSparty folder and I can't get it to call in my page.ss header. After I get that to work I just imagine that I'd call the elements from within the page structure.

    Is that correct?

    thanx a million!!!

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Jquery Blues Link to this post

    Try this:

    Put your jquery.js file into mysite/javascript and add this to your Page.php controller:

    Requirements::javascript("mysite/javascript/jquery.js");

    That should do it

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: Jquery Blues Link to this post

    I am trying to get some jquery stuff going to. I can get SS to reference it from my themes/js folder. But I knoticed that jquery and a load of plugins are included in the jsparty folder. Is there a more direct way of calling these in. Say for example: Requirements::javascript('jquery');?

    I know its not really saving much time over writing the full path, but I like automation wherever possible .

    Thanks,

    Mo

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Jquery Blues Link to this post

    yea I realised it was in there the other day too. I'm not sure there is a one word call you can do, but it's probably a good idea to call it from jsparty anyway, using the full path.

    1423 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.