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 to 'activate' a subtheme


Reply

2 Posts   660 Views

Avatar
_Matt

23 February 2013 at 10:49pm Community Member, 27 Posts

I'm struggling to get a subtheme working and wondered if someone could show me what I'm doing wrong? I've followed the instructions here (http://doc.silverstripe.org/framework/en/topics/theme-development) and here (http://www.silverstriperesources.com/articles/customising-a-theme-using-sub-themes/), but my subtheme is just not being recognised.

My understanding from these articles is that you simply need to create a new theme folder with the same name as your 'master' theme, and suffix it with something like '_page' (then do your overrides in this folder). The articles don't say to do anything else, such as edit _config.php, or select the subtheme in the Settings admin section (both of which I've tried). However, when I do this what I'm expecting to see just doesn't happen.

I'll keep experimenting, but if anyone has any suggestions that would be great :)

Avatar
_Matt

24 February 2013 at 1:25am Community Member, 27 Posts

Ok, so a quick update.

After a bit more experimenting I've established that you can subtheme a module (i.e. myTheme_blog) but you can't subtheme a page type (i.e. myTheme_page) even though this article suggests you can: http://www.silverstriperesources.com/articles/customising-a-theme-using-sub-themes/

Does this mean that SS 3 no longer supports sub-theming of page types?