Jump to:

1382 Posts in 492 Topics by 521 members

Themes

SilverStripe Forums » Themes » Child / dependent themes - anyone know this?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 711 Views
  • KINKCreative
    Avatar
    Community Member
    56 Posts

    Child / dependent themes - anyone know this? Link to this post

    I recall vaguely an article from years ago that explained we could develop dependent themes. E.g. one theme that inherits from another, and you would then only change certain files, while keeping the main theme as the basis. I am pretty certain it had to do with SS. Does anyone remember this? I googled back and forth and I'm not hitting anything.

    Hereby I don't mean a "subtheme" for a module, but e.g. a theme that is derived from a main theme, but has a different look (e.g. different CSS's).

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Child / dependent themes - anyone know this? Link to this post

    AFAIK inheritance isn't supported more than subthemes. You can also use the fact that if no theme contains the file mysite/templates is used so your 'base' could be mysite/templates/ then subthemes to themes/yourtheme

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: Child / dependent themes - anyone know this? Link to this post

    You can can use sub themes. They are not just for modules, they can be used to take a theme, and extend it for any page type. By using myTheme_page you can basically create a child theme that extends your master theme...

    I've put some notes on this at http://www.silverstriperesources.com/articles/customising-a-theme-using-sub-themes/

    711 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.