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

Image Gallery CSS location


Go to End


8 Posts   2006 Views

Avatar
redactuk

Community Member, 117 Posts

14 September 2009 at 3:25am

Edited: 14/09/2009 3:26am

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

14 September 2009 at 4:10am

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

Avatar
Willr

Forum Moderator, 5523 Posts

14 September 2009 at 9:10am

Edited: 14/09/2009 12:50pm

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

14 September 2009 at 12:48pm

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

Avatar
redactuk

Community Member, 117 Posts

21 May 2010 at 11:47am

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?

Avatar
redactuk

Community Member, 117 Posts

8 June 2010 at 3:22am

Edited: 08/06/2010 3:22am

Hi UncleCheese

Any plans to implement this?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

8 June 2010 at 3:53am

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. :)

Avatar
redactuk

Community Member, 117 Posts

8 June 2010 at 8:23am

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