Jump to:

3434 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » [SOLVED] Subtemplate doesn't work

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

Page: 1
Go to End
Author Topic: 1211 Views
  • Stephan
    Avatar
    Community Member
    55 Posts

    [SOLVED] Subtemplate doesn't work Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: [SOLVED] Subtemplate doesn't work Link to this post

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

  • Stephan
    Avatar
    Community Member
    55 Posts

    Re: [SOLVED] Subtemplate doesn't work Link to this post

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

    Thanks very much.
    Now it works.

    CU Stephan

    1211 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.