7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » How to link/require correct JS files?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 723 Views |
-
How to link/require correct JS files?

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
-
Re: How to link/require correct JS files?

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
-
Re: How to link/require correct JS files?

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!
| 723 Views | ||
|
Page:
1
|
Go to Top |


