Jump to:

21310 Posts in 5739 Topics by 2604 members

General Questions

SilverStripe Forums » General Questions » Best Way to implement a lightbox feature

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

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1389 Views
  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Best Way to implement a lightbox feature Link to this post

    Is there a best way to implement allowing a user to select a thumbnail on a webpage and it open up in a lightbox type of window?

    I need to have a way to show the picture with some head and footer content for the picture.

    Has anyone done this before?

    Terry

  • rockarena
    Avatar
    Community Member
    13 Posts

    Re: Best Way to implement a lightbox feature Link to this post

    The way I see it, and I'm new to this cms so forgive me if I'm wrong, is that you should put the javascript code for the lightbox in mysite/javascript and then implement it in your template for your image gallery. I could be wrong off course but it seems to be the logical way of implementing this.

  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Re: Best Way to implement a lightbox feature Link to this post

    Rockarena,

    You nailed perfectly. That's exactly what I did and it worked 100%.

    Thanks,

    Terry

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