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.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How subthemes work?


Reply


2 Posts   1882 Views

Avatar
walec51

Community Member, 16 Posts

25 June 2009 at 10:21am

Hi,

Lets assume this situation. I have a ss file in the blog module:

/blog/templates/Layout/BlogHolder.ss

which I want to override. I'm using the pixelgreen theme.
So I come to think that the best way will be to create a subtheme pixelgreen_blog with the file:

/themes/pixelgreen_blog/Layout/BlogHolder.ss

But it seam that my intuition fails me and this doesn't work so I have to ask how to accomplish this correctly ? :)

Avatar
stooni

Community Member, 89 Posts

16 August 2009 at 5:17am

Hello ,

you will in the blog another theme then in the basic site?

then look here http://doc.silverstripe.org/doku.php?id=themes:developing&s=subthemes#subthemes

But if you want change the theme you give in the mysite/_config.php the theme name
SSViewer::set_theme('pixelgreen');

----Stooni