491 Posts in 152 Topics by 242 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 4260 Views |
-
How to change the standard "home" page?

18 May 2009 at 1:50am
Hi,
I just installed SilverStripe and want to change the standard "home" page. The website simply shall start with one of my own created pages.
How can I do that? Can't be that hard, or?
Cheers, Mario
-
Re: How to change the standard "home" page?

18 May 2009 at 6:13am
Change the Page type for the Home page in SS to a Redirector page and then link it to your own Home page.
-
Re: How to change the standard "home" page?

18 May 2009 at 12:11pm
Ok, but you can't delete "home", because it's something like the index.html and the redirection is the only way to set another page as the starting page?
-
Re: How to change the standard "home" page?

18 May 2009 at 6:11pm Last edited: 18 May 2009 7:29pm
If you delete "home" you will get an error. If you then flush the database it will recreate a "home" page.
You could also do it by creating a HomePage template (http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site).
Then in HomePage.ss (which is just a html page) you can just delete everyting in the <body> section and include our own content.
As a newbee to SS I'm not sure if you have to do some other things as well
-
Re: How to change the standard "home" page?

19 May 2009 at 6:09am
Thanks a ton till now!
I now think the standard home is a good thing, because with HTML you'll also always need an index.html. Same thing here.
Cheers, Mario
| 4260 Views | ||
|
Page:
1
|
Go to Top |


