mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Explain the module specific themes separation capability of Silverstripe
Relates to #3944
This commit is contained in:
parent
8b2ad80c8f
commit
39fac21fb9
@ -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:
|
||||
|
||||
1. mysite (or other name given to site folder)
|
||||
2. themes
|
||||
3. modules
|
||||
4. framework.
|
||||
2. module-specific themes (e.g. themes/simple_blog)
|
||||
3. themes (e.g. themes/simple)
|
||||
4. modules (e.g. blog)
|
||||
5. framework
|
||||
|
||||
<div class="warning">
|
||||
Whenever you add or remove template files, rebuild the manifest by visiting `http://yoursite.com/?flush=1`. You can
|
||||
|
@ -47,6 +47,30 @@ located within the `themes` directory.
|
||||
|
||||
![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
|
||||
|
||||
If you want to submit your theme to the SilverStripe directory then check
|
||||
|
Loading…
Reference in New Issue
Block a user