How do you disable the red "Published Site" on top of the menu?
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 :-)
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.
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.