Static Site into SilverStripe Theme

Create a new folder to hold your new theme, lets call it pandaux!

mkdir themes/pandaux

Update config.yml to point to your new theme.

vi yourSite/mysite/_config/config.yml

Declaire your theme as the new theme:

  theme: 'pandaux'

Add the default SilverStripe theme structure:


Paste your new markup into and rebuild and flush your site.

Update all file references to point to $ThemeDir as the source, for example replace all references.

<img src="images/logo.png" /> becomes <img src="$ThemeDir/images/logo.png" />

Refresh your page, and you should get your new theme's template.