Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Image Gallery CSS location

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: 1452 Views
  • redactuk
    Avatar
    Community Member
    117 Posts

    Image Gallery CSS location Link to this post

    I'm fairly new to Silverstripe and only recently discovered that you don't edit template files that come with modules, but copy the ones you need to your default template path and edit the copies there. Am I right in thinking this does not apply to CSS files?

    Today doing new install of image gallery I moved the default /image_gallery/css/ImageGallery.css to themes/mytheme/css/ but this does not appear to work.

    Clarification appreciated please

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery CSS location Link to this post

    No, the override system only applies to .ss files. CSS can be overridden like usual, by just overriding rules in your own stylesheet.

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Image Gallery CSS location Link to this post

    the override system only applies to .ss files

    The override system does apply to CSS files if the link to the file is using the themedCSS wrapper rather then an absolute path. Eg in the forum we have Requirements::themedCSS('Forum'); this will look for a Forum.css in your theme path then default to the standard Forum.css.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery CSS location Link to this post

    Oh, perfect. Thanks, willr. I'll definitely be using that!

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: Image Gallery CSS location Link to this post

    Just installed image_gallery with a new project (currently using r390 with SS 2.3.7) and noticed that moving ImageGallery.css to local theme CSS folder still does not work. Can your confirm that this is something still not supported and if so if I can manually achieve was suggested before by willr?

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: Image Gallery CSS location Link to this post

    Hi UncleCheese

    Any plans to implement this?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery CSS location Link to this post

    The change has been in the 2.4 branch for a while, but I'm not updating the 2.3 branch anymore. It's just too much maintenance for one guy.

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: Image Gallery CSS location Link to this post

    Ah that's great. I'm mostly using 2.4 now anyway.

    1452 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.