17452 Posts in 4473 Topics by 1971 members
|Go to End|
20 February 2007 at 10:22pm Last edited: 20 February 2007 11:47pm
How do you disable the red "Published Site" on top of the menu?
21 February 2007 at 10:44am
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
31 March 2007 at 6:50am
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.
31 March 2007 at 12:22pm
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.
|Go to Top|