Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Newbie: Using templates and themes

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: 731 Views
  • philroc
    Avatar
    Community Member
    2 Posts

    Newbie: Using templates and themes Link to this post

    Hi,

    when you first install SS, it uses the templates in the <...>/htdocs/<base directory>/themes/tutorial/templates directory (although, strangely enough, the mysite/_config.php file sets the 'blackcandy' theme).

    How you tell SS to use other templates and/or other themes?

    What's the best way to start a new website using existing templates?

    Many thanks.

    philroc

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Newbie: Using templates and themes Link to this post

    There is a file called _config.php in the mysite folder, down near the bottom of this you will see a line containing 'blackcandy'. This is where you set which template the site uses by setting it to the name of the folder inside the themes folder.

    There are a few ways to go about creating a new theme based on a normal html template but one of the best ways is outlined here http://ssbits.com/building-a-theme-from-a-static-template/

    Hope this helps

  • philroc
    Avatar
    Community Member
    2 Posts

    Re: Newbie: Using templates and themes Link to this post

    Many thanks Howard. The template tutorial was very useful.

    Now, let us say that wish to create a website from scratch. Should you go to the Site Content Manager and delete all the pages (Home, etc.) or is there a better way? Furthermore, let's say that you wish to create two websites. How do you tell the Site Content Manager which site to point to and how do you switch from one to the other?

    Many thanks.

    philroc

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