Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Homepage Layout
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Homepage Layout | 517 Views |
-
Homepage Layout

23 June 2008 at 4:06am
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
-
Re: Homepage Layout

23 June 2008 at 5:31am
fixed : controller was declared
class HomePage_Controller extends ContentController
instead of
class HomePage_Controller extends Page_Controller
| 517 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: There is nobody online.
Welcome to our latest member: AlfonsoGrondo

