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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[SOLVED] Subtemplate doesn't work


Go to End


3 Posts   1511 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