Jump to:

7939 Posts in 1472 Topics by 944 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 780 Views
  • dynamite
    Avatar
    Community Member
    66 Posts

    How to link/require correct JS files? Link to this post

    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

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: How to link/require correct JS files? Link to this post

    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

  • dynamite
    Avatar
    Community Member
    66 Posts

    Re: How to link/require correct JS files? Link to this post

    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!

    780 Views
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.