Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Remove homepage (template)

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

Page: 1
Go to End
Author Topic: 839 Views
  • arnott
    Avatar
    Community Member
    16 Posts

    Remove homepage (template) Link to this post

    hi all,

    The CMS website setup has a homepage. I was playing with tutorial 1 and now everytime I do dev/build it creates a new homepage. I have deleted Homepage.php and HomePage.ss. Is there a entry in the mysql database I need to delete ?

    Also how to set my old homepage as the homepage ?

    Thanks
    arnott

    P.S: I posted this in the blog module forum, I am resposting it here.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Remove homepage (template) Link to this post

    Change the page type in the CMS to the standard 'Page' page type. Save and publish then revisit the page with a ?flush=1 and you should be back on the normal template.

    SS will create a page with the url 'home' if you haven't got one as it requires a page with the url 'home'.

  • arnott
    Avatar
    Community Member
    16 Posts

    Re: Remove homepage (template) Link to this post

    Thanks willr. The home page's page type is already "Page". I referred it as a template as a new homepage was getting created everytime I did ' (mysite)/dev/build?flush=1' and I had renamed the homepage url. Was my mistake doing that instead of '(mysite)?flush=1' ?

    839 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.