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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1134 Views

Avatar
dynamite

Community Member, 66 Posts

13 January 2010 at 4:17pm

Hello,

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!

Jeremy

Avatar
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 ImageGalleryPage.ss and ImageGalleryPage_album.ss as well as the include AlbumList.ss 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

Aram

Avatar
dynamite

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!