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 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.

Themes /

Discuss SilverStripe Themes.

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

Different home page

Go to End

3 Posts   2361 Views


Community Member, 1 Post

19 November 2015 at 5:49am


I'm basically looking for a quick and dirty way to have a different homepage to the rest of the site, so index.php will not be connected to SilverStripe.

The rest of the site is fine but the front page is to have a totally different design Silverstripe. It's a temporary website so I don't mind the 'hackiness' of this.

Is there an easy way to do this?


Community Member, 166 Posts

19 November 2015 at 9:34am

Hi CitizenSmif,

I had crafted a nice reply to you, but then silverstripe logged me out and failed to post (lost it all).

I suggest looking into creating new page types, adding and HomePage.php files.

UncleCheese has a fantastic Video on this, check the link below:



Community Member, 17 Posts

3 March 2016 at 12:54am

Edited: 03/03/2016 12:56am


Fast and dirty way. In your template main

<% if URLSegment = home || URLSegment = '' %>
<% include Startpage %>
<% else %>
<% include Header %>
<% include Footer %
<% end_if %>

Then u can make under include and u have "special layout" for start page. If u wanna be a bit more creative u can make special page type for startpage (with controller under mysite and extend this approach). Main idea is that u can control on template main layout what is included on what conditions.

hope that helps ;)