Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

How to link/require correct JS files?

Go to End

3 Posts   1023 Views


Community Member, 66 Posts

13 January 2010 at 4:17pm


I am trying to install ImageGallery plugin on my custom template/theme. How do I make sure the JS and CSS that is needed is properly included?

It would be nice if this was touched on in the installation steps, too.

Thanks in advance!


Carbon Crayon

Community Member, 598 Posts

18 January 2010 at 6:05am

Hi Dynamite,

You don't need to do anything, simply add the files and as well as the include to your themes/YOURTHEME/templates/Layout and /Includes and these will override the default ImageGallery templates. The Javascript will be included automatically as this is done via the PHP Controller which is unaffected by template changes.

Hope that helps



Community Member, 66 Posts

18 January 2010 at 9:26am

Hi Aram,

Thanks for the help. Uncle Cheese actually helped me solve this -- the module needs to be in the folder "image_gallery" (I had it named "imagegallery" and it didn't work)

Thanks for the info, and have a nice day!