Template order

So when executing ->renderWith(‘MyTemplate’), what’s the SilverStripe 3.x template inheritence order?

I believe it was MyTemplate.ss in

  1. mysite
  2. module folder
  3. 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)

  1. Mysite folder
  2. Module folder
  3. 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

I think it should be modules -> mysite -> themes. I don’t have an authoritative reference for this though.