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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Home page


Reply


5 Posts   2020 Views

Avatar
mazu

Community Member, 3 Posts

21 July 2009 at 5:49pm

Edited: 21/07/2009 7:45pm

Hi,
I'm very new to SilverStripe. Currently I'm doing my first project with it. Every time when I run /dev/build/?flush=all, the default home page, named 'Home' is created. I have a second page with different name, which I want to be my 'home page' (the page that is shown by default). Is it possible to change the home page? If so, where?

Avatar
Carbon Crayon

Community Member, 598 Posts

22 July 2009 at 2:31am

Hi Mazu

SilverStripe looks for a page with the URL segment 'home' to use as the home page. To get your new page to be the home page simply delete the current homepage and then change the URLSegment of your custom page to 'home' under the 'metadata' tab.

Aram

Avatar
timwjohn

Community Member, 98 Posts

4 March 2010 at 10:29pm

Is there a way of preventing the 'Page not found' page from being automatically generated? Or at least hiding it at a specific user level?

Avatar
Mo

Community Member, 509 Posts

7 March 2010 at 1:44pm

Aram, don't you also have to move your new home page to the top of the sitetree? or does it just look for 'home' at any location?

Tim, is this the same client thats wants no functionality at all from their CMS? If so, at this point, I am wondering why you don't just give them HTML files and as copy of Dreamweaver ;).

I think that the ability to edit 'Page not found' and other error pages by content editors is quite important, as they may need to quickly change contact information or any other details that are present on the page.

If you absolutely have to disable this, you may be able to extend CMSMain and add an extra requirements::javascript() that hid error pages from the sitetree. Not sure how well (if at all) this would work though.

Mo

Avatar
logiczero

Community Member, 12 Posts

8 January 2011 at 11:21am

I changed the URL Segment of my custom page to 'home' under the 'metadata' tab, and it is now the home page that appears if there is nothing in the URL except the domain name (http://mysite.com), which is what I want.

In the Navigation menu, the link to the page I am using for my home page simply points to http://mysite.com. If I am at a page like http://mysite.com/about, clicking on that link to http://mysite.com does nothing.

How does one force Silverstripe to return to the home page via an unmodified URL like http://mysite.com?