Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » To theme or not to theme...

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 630 Views
  • Rawbit
    Avatar
    Community Member
    52 Posts

    To theme or not to theme... Link to this post

    ... that is the question.

    In my first SS project I kept all of the site View in MySite. However I notice the auto-install uses the themes folder in root. Should I be using this theme folder, and then applying my customizations in MySite/templates ? What are the advantages/disadvantages to this.
    I'm interested in the communities general approach to this and what YOU use for your structure of templates & themes.

    Is there a standard? Do you find it more organized or efficient to use the themes dir?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: To theme or not to theme... Link to this post

    If you're pretty sure you'll only need the one theme then there is no reason you can't keep it in mysite, but I prefer to use the themes dir for views and mysite for the code.

    Basically, that just means that if I want to develop an alternative theme, it's really easy to have them co-living in the themes folder. When it comes time to switch them over, it's a single line in the config. It also means you can have multiple themes for different people (eg, different member groups, or user-selectable themes).

  • Rawbit
    Avatar
    Community Member
    52 Posts

    Re: To theme or not to theme... Link to this post

    Ok thanks for the response - I sort of expected this.

    I am interested though, in what you mention about "It also means you can have multiple themes for different people (eg, different member groups, or user-selectable themes).". Does Silver Stripe Naively support a shared codebase model for multiple clients? For example in root I could have mysite, myfriendSite, myotherFriendSite and all benefit from the same code. To make this work I suppose you would simply need to control the domain 301 inside .htaccess, does this sound right?

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