Make sure your class has a Page_Controller
extension declared and named correctly. I recently had this issue. The page controller extension had a typo, so the template file was not being used.
So for example, if your page class is RidiculouslyNamedPage
class RidiculouslyNamedPage extends Page {
}
class RidiculouslyNamedPage_Controller extends Page_Controller {
}
Then in your themes/[theme-name]/templates/Layout/
folder you would have your RidiculouslyNamedPage.ss
.
If you misspell RidiculouslyNamedPage_Controller
the template will not get called.