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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

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

How to change the standard "home" page?


Go to End


6 Posts   10822 Views

Avatar
MarioSommereder

Community Member, 107 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
MarioSommereder

Community Member, 107 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 (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 :)

Avatar
MarioSommereder

Community Member, 107 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. :)