Remember me? forgot password | register

SilverStripe Forum

10689 Posts in 2796 Topics by 1518 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » Homepage Layout
Page: 1 go to end Reply
Author Topic: Homepage Layout 364 views
  • erwanpia
    erwanpia's avatar
    Community Member
    34 posts

    Homepage Layout Link to this post

    Hi, I 've been throught the tutorial with one thing I can't figure out

    first part is OK : creating HOmePage typer and templates/HomePage.ss works fine

    when I get in trouble is here :

    the tutorial says "SilverStripe first searches for a template in the tutorial/templates folder. Since if there is no HomePage.ss, it will use the Page.ss for both Page and HomePage page types. When it comes across the $Layout tag, it will then descend into the tutorial/templates/Layout folder, and will use Page.ss for the Page page type, and HomePage.ss for the HomePage page type"

    my problem is that when I delete templates/HomePage.ss, the Layout/HomePage.ss is rendered alone, without the template/Page.ss template around it

    any idea why is that ? thanks

  • erwanpia
    erwanpia's avatar
    Community Member
    34 posts

    Re: Homepage Layout Link to this post

    fixed : controller was declared

    class HomePage_Controller extends ContentController

    instead of

    class HomePage_Controller extends Page_Controller

    364 views
go to top Reply

Currently Online:

g, eljefe, patrics, Aster, motoservo

Welcome to our latest member: patrics