+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Lightbox works only in preview mode

Lightbox works only in preview mode

4 posts, 0 answered
  1. Jorge
    Jorge avatar
    5 posts
    Registered:
    10 Jun 2009
    12 Jan 2010
    Link to this post
    I create an image gallery with a lightbox. If I click Preview, the pages works Ok, but if I publish it, then the lightbox does not work anymore: when I click an image it opens in a new window.

    Any idea?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jan 2010
    Link to this post
    Hi Jorge,

    Check whether there is a js thrown. Do you use one of the built in controls or you have a custom one. We are not able to reproduce a problem with our ImageGallery control related to the lightbox presentation mode.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jorge
    Jorge avatar
    5 posts
    Registered:
    10 Jun 2009
    12 Jan 2010
    Link to this post
    I checked with firebug and I'm getting error 403, because I have https and ip restrictions on /sitefinity directory, and lightbox's js is located inside it.

    Is it safe to allow unrestricted access to /sitefinity/ControlTemplates and /sitefinity/ExternalLibraries?
    Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jan 2010
    Link to this post
    Hello Jorge,

    Generally this should not be a problem. If you prefer other location you can move the lighbox js somewhere else and change the references to the lighbox js library.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered