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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Stage Version of a Site


Go to End


4 Posts   2542 Views

Avatar
Aug

Community Member, 7 Posts

3 January 2010 at 7:00pm

Is there a way to have a site always showing the stage version of a site without logging in?

Avatar
Aug

Community Member, 7 Posts

9 January 2010 at 11:33am

I can not be the only one who has requested this am I?

Avatar
Aug

Community Member, 7 Posts

16 January 2010 at 12:42pm

I did find a way to force the site into stage mode, however it circumvented the need to login. ultimately my solution was to change the .htaccess file to append stage=Stage to every url. A waste of processing, but your staging environment should be low traffic anyhow.

Our stage server is on the same server as the production server. They share a database, and a symbolic link to the assets directory.

Avatar
ajshort

Community Member, 244 Posts

16 January 2010 at 3:29pm

An easier way to do this would be to place "Session::set('currentStage', 'Stage');" in your _config.php file.