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.

Template Questions /

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

Subtheme don't work with SilverStipe 3.1.13


Go to End


2 Posts   1208 Views

Avatar
fabioC

Community Member, 3 Posts

14 August 2015 at 4:58am

Edited: 16/08/2015 12:19am

Hi all,
After a long time, I want to give SilverStripe another try. But after less then 5 minutes I got the first problem :D

Well, I installed SilverStripe through Composer, then added bootstrap (composer require burnbright/silverstripe-bootstrap) and changed the config.yml to load the theme "bootstrap". So far, so good!

Then, I created a folder called bootstrap_example in the themes directory and added some files under bootstrap_example/templates/Indcludes. After flushing the site, I can't see any changes.

Any ideas, what I did wrong?
Thanks, Fabio

UPDATE:
Got it working, after reading this nice piece of history: https://web.archive.org/web/20120225045929/http://www.silverstriperesources.com/articles/customising-a-theme-using-sub-themes/

renaming my folder from bootstrap_example to bootstrap_page did the trick!

Avatar
Pyromanik

Community Member, 419 Posts

17 August 2015 at 11:46pm

Yes, the format bascially goes ThemeName_modulename/ - which if you're not using a module causes issues. Cool that you found that history though, I wasn't aware of it.

Similarly, templates themselves follow the naming format: ClassName_actionname.ss