7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Image Gallery CSS location
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: | 1262 Views |
-
Image Gallery CSS location

14 September 2009 at 3:25am Last edited: 14 September 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
-
Re: Image Gallery CSS location

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.
-
Re: Image Gallery CSS location

14 September 2009 at 9:10am Last edited: 14 September 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.
-
Re: Image Gallery CSS location

14 September 2009 at 12:48pm
Oh, perfect. Thanks, willr. I'll definitely be using that!
-
Re: Image Gallery CSS location

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?
-
Re: Image Gallery CSS location

8 June 2010 at 3:22am Last edited: 8 June 2010 3:22am
Hi UncleCheese
Any plans to implement this?
-
Re: Image Gallery CSS location

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.
-
Re: Image Gallery CSS location

8 June 2010 at 8:23am
Ah that's great. I'm mostly using 2.4 now anyway.
| 1262 Views | ||
|
Page:
1
|
Go to Top |


