Explain the module specific themes separation capability of Silverstripe

Relates to #3944
This commit is contained in:
Jeremy Shipman 2015-02-26 12:51:27 +13:00
parent 8b2ad80c8f
commit 39fac21fb9
2 changed files with 28 additions and 3 deletions

View File

@ -46,9 +46,10 @@ your entire project for the appropriate `.ss` files located in `template` direct
It will each and prioritize templates in the following priority: It will each and prioritize templates in the following priority:
1. mysite (or other name given to site folder) 1. mysite (or other name given to site folder)
2. themes 2. module-specific themes (e.g. themes/simple_blog)
3. modules 3. themes (e.g. themes/simple)
4. framework. 4. modules (e.g. blog)
5. framework
<div class="warning"> <div class="warning">
Whenever you add or remove template files, rebuild the manifest by visiting `http://yoursite.com/?flush=1`. You can Whenever you add or remove template files, rebuild the manifest by visiting `http://yoursite.com/?flush=1`. You can

View File

@ -47,6 +47,30 @@ located within the `themes` directory.
![themes:basicfiles.gif](../../_images/basicfiles.gif) ![themes:basicfiles.gif](../../_images/basicfiles.gif)
Your theme can also be organised into split folders for each module it caters for.
```
themes
blackcandy
css
style.css
images
templates
Page.ss
Layout
Page.ss
Includes
blackcandy_blog
css
blog.css
images
templates
Layout
BlogHolder.ss
BlogEntry.ss
Includes
```
## Submitting your theme to SilverStripe ## Submitting your theme to SilverStripe
If you want to submit your theme to the SilverStripe directory then check If you want to submit your theme to the SilverStripe directory then check