Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Something is wrong

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: 1943 Views
  • Netsoft
    Avatar
    Community Member
    1 Post

    Something is wrong Link to this post

    How do you disable the red "Published Site" on top of the menu?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Something is wrong Link to this post

    You *can* do this by deleting $SilverStripeNavigator from the Page.ss template.

    However, it is only shown if you're logged in as someone with access to the CMS, and it's there for your benefit: prior to its inclusion, it was difficult to tell whether you were on the stage site or the live site.

    The other way of removing it is to log out of the CMS

  • Scott
    Avatar
    Community Member
    3 Posts

    Re: Something is wrong Link to this post

    What if it is only being removed when you take out $SilverStripeNavigator but when logged out it's still showing.

    I have tried 2.0, 2.01 and the latest CVS build, they all keep the PUBLISHED SITE message their unless I edit the template.

  • Scott
    Avatar
    Community Member
    3 Posts

    Re: Something is wrong Link to this post

    Ok, I fixed that. My URL had .dev. in it because it was running on my development server. This seems to occur if you use .dev. or .test. in your subdomain.

    If you have this problem, then around line 342 in sapphire/core/control/Director.php you wil find:
          return (strpos($testURL, '.test.') === false) && (strpos($testURL, '.dev.') !== false) ;

    Either rename or remove the search, in my case, I changed .dev. to .ddev.

    Scott.

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