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

Generated with the default ContentController.ss template


Go to End


17 Posts   12152 Views

Avatar
TDNP

Community Member, 19 Posts

25 October 2012 at 1:21pm

Edited: 25/10/2012 1:23pm

I realize that this post is dead but for people that go through all the steps above, I have a very easy fix. Make sure your SS file matches the case of the page controller.

For Example:
If you are creating a contact page you would use
class ContactPage_Controller extends Page_Controller {}
That would mean your template must be titled "ContactPage.ss" and not "contactPage.ss".

I was recreating my base file (Page.ss) and used a lower-case 'p'. So I have been reading and following all of the suggestions given here and a number of other blogs and forums that have similar advice. All came back to the same thing. Solution was a capital 'P'.

Go to Top