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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

How to link/require correct JS files?


Reply

3 Posts   817 Views

Avatar
dynamite

13 January 2010 at 4:17pm Community Member, 66 Posts

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

18 January 2010 at 6:05am Community Member, 598 Posts

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

18 January 2010 at 9:26am Community Member, 66 Posts

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!