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.


Our old forums are still available as a read-only archive.

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

Homepage Layout


2 Posts   1217 Views


23 June 2008 at 4:06am Community Member, 63 Posts

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

first part is OK : creating HOmePage typer and templates/ 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, it will use the 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 for the Page page type, and for the HomePage page type"

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

any idea why is that ? thanks


23 June 2008 at 5:31am Community Member, 63 Posts

fixed : controller was declared

class HomePage_Controller extends ContentController

instead of

class HomePage_Controller extends Page_Controller