Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Image Gallery init issue

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 863 Views
  • dkm
    Community Member
    4 Posts

    Image Gallery init issue Link to this post

    I just thought I would pass this along in case anyone else runs into this problem. I don't think this is a bug with the Image Gallery module but just a unfortunate set of circumstances.

    I had the Image Gallery module up and running on a clients site an then I got a email from the client stating that their gallery page had stopped showing photos. After investigating it turns out that they had commented out their Google Analytics code. This code is located right before the closing body tag. The Image Gallery module inserts its script tag code in the same location. It turns out that if there's a commented out script tag block in this location the Image Gallery initialization script tag code will get inserted into the this commented out block. Thus, none of the gallery photos will be shown (actually they are there but just hidden and don't get displayed until the init script is run).

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.