Jump to:

3432 Posts in 1025 Topics by 865 members

Template Questions

SilverStripe Forums » Template Questions » how to use jquery and lightbox clone - prettyPhoto

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

Page: 1
Go to End
Author Topic: 2662 Views
  • emil.blume
    Avatar
    Community Member
    11 Posts

    how to use jquery and lightbox clone - prettyPhoto Link to this post

    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

  • keeny
    Avatar
    Community Member
    48 Posts

    Re: how to use jquery and lightbox clone - prettyPhoto Link to this post

    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.

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