Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Issues with requirement of a page with a URL of 'home'

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2066 Views
  • SLJ
    Avatar
    Community Member
    23 Posts

    Issues with requirement of a page with a URL of 'home' Link to this post

    I'm posting this after an IRC conversation with Elijah Lofgren

    Issue:
    I used the reorganize function in the CMS to move my home page to the end so "Home" is the last page not the first. SS keeps putting a home page at the beginning so now I have 2 of them. I tried renaming the new one to what I want to be the first page, but it keeps adding a home page if it doesn't see one already as the first page. My pages are: page1, page2, page3, Home. After I reorganized them like this I ended up with: Home, page1, page2, page3, Home. I tried renaming the new home page to "test" to see if renaming it would work. Now I have: Test, Home, page1, page2, page3, Home.

    Environment: SS v2.0.1 PHP v5.2.0 Apache v2

    The workaround Elijah helped me with was to rename the page I want to be the home with a Page name of "Home". This got it back to having a url of /home/ then I renamed it again with what I wanted and chose the option not to change the URL. This seems to work so far. Elijah said:

    "I think it might be good to make post a bug saying that the requirement of a page with a URL of 'home' needs to be explicit (by not allowing the 'home' page to be deleted in the 1st place) or there should not be a requirement on a 'home' page at all."

    I agree and so I am posting this. Thanks.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Issues with requirement of a page with a URL of 'home' Link to this post

    Perhaps in the behaviour tab we could have a checkbox - "this page is the homepage". If you checked this, then it would deselect the previous homepage.

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