Jump to:

1382 Posts in 491 Topics by 521 members

Themes

SilverStripe Forums » Themes » How subthemes work?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1805 Views
  • walec51
    Avatar
    Community Member
    16 Posts

    How subthemes work? Link to this post

    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 ?

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: How subthemes work? Link to this post

    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

    1805 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.