So when executing ->renderWith(‘MyTemplate’), what’s the SilverStripe 3.x template inheritence order?
I believe it was MyTemplate.ss in
- mysite
- module folder
- theme folder (last choice)
is this correct? Can someone point me to the doc page where this is explicitly described?
So I just tested it and it’s (first priority to last)
- Mysite folder
- Module folder
- Theme folder
I don’t know about documentation but The ThemeResourceLoader class is where you want to look.
The comment above findTemplate() is:
Attempts to find possible candidate templates from a set of template
names from modules, current theme directory and finally the application
folder.
I think it should be modules -> mysite -> themes. I don’t have an authoritative reference for this though.