Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

Something is wrong

Go to End

4 Posts   2217 Views


Community Member, 1 Post

20 February 2007 at 10:22pm

Edited: 20/02/2007 11:47pm

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


Administrator, 690 Posts

21 February 2007 at 10:44am

You *can* do this by deleting $SilverStripeNavigator from the 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 :-)


Community Member, 3 Posts

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.


Community Member, 3 Posts

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.