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.

Themes /

Discuss SilverStripe Themes.

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

How subthemes work?


Go to End


2 Posts   2881 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