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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Newbie: Using templates and themes


Go to End


3 Posts   1045 Views

Avatar
philroc

Community Member, 2 Posts

29 September 2009 at 10:24pm

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

Avatar
Howard

Community Member, 215 Posts

30 September 2009 at 12:18am

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 :)

Avatar
philroc

Community Member, 2 Posts

30 September 2009 at 3:29am

Edited: 30/09/2009 3:31am

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