Zauberfisch / silverstripe-boilerplate

Boilerplate template to quickly kick off a new SilverStripe project
21 stars 3 forks source link

Themes #17

Closed bruce133 closed 10 years ago

bruce133 commented 10 years ago

how to use

This boilerplate is based on the assumption that the project will be a customized website/webapp. So you might notice there is no theme in the themes folder, the plan is to add all templates, javascript and css/scss into mysite. Which has the benefit of having the whole project at one place, not separated into 2 folders.

What if my project requires multiple themes, eg. letting the user choose preferred theme or having a holiday themed site? How would I go about doing this using this boilerplate?

Zauberfisch commented 10 years ago

I do See this usecase, and have actually had to use the Themes folder on 2 recent projects. I just used the boilerplate and moved the templates, scss and CSS folder from my site to the theme folder. (the boilerplate doesn't force you to use misuse, it just starts of with the mysite folder.)

I plan on doing some refactoring and improving the docs during the Christmas Holliday, and one of the points on my todo list is better handling of this issue (either better documentation on the matter or alternative downloads)

bruce133 commented 10 years ago

Wasn't aware that SS allows moving templates around like that, good to know. Thanks!

Zauberfisch commented 10 years ago

yes it does, but it caches the file name and location, so if you rename or move a template, you have to ?flush=1