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.

Content Editor Discussions /

Forum for content editors and CMS users.

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

How to change the standard "home" page?


Reply


6 Posts   6059 Views

Avatar
knsqnt

Community Member, 85 Posts

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

Avatar
Varberg

Community Member, 15 Posts

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.

Avatar
knsqnt

Community Member, 85 Posts

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?

Avatar
Varberg

Community Member, 15 Posts

18 May 2009 at 6:11pm

Edited: 18/05/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 ([url]http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site[/url]).

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 :)

Avatar
knsqnt

Community Member, 85 Posts

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

Avatar
Varberg

Community Member, 15 Posts

19 May 2009 at 6:18am

Glad I could help. :)