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

[SOLVED] Subtemplate doesn't work


Go to End


3 Posts   1878 Views

Avatar
Stephan

Community Member, 55 Posts

8 August 2009 at 10:47pm

Edited: 09/08/2009 9:01pm

Hi Experts,
I'm running SS 2.3.3.
I made a page.ss in /mysite/templates with $Layout.
Then I have two templates in /mysite/templates/Layout named Page.ss and Startseite.ss
If I go to the page with page type "Startseite" only the processed Startseite.ss is displayed,
but not the part of Page.ss from /mysite/templates.

I did it exactly the same way as described in tutorial 1.

Am I missing something ?

TIA Stephan

Avatar
Willr

Forum Moderator, 5523 Posts

9 August 2009 at 11:43am

Does Startseite extend from page and Startseite_Controller extend from Page_Controller (which is more important) ?

Avatar
Stephan

Community Member, 55 Posts

9 August 2009 at 9:01pm

Oh no !
I did extend from ContentController !!
I'm so stupid.

Thanks very much.
Now it works.

CU Stephan