21293 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1055 Views |
-
Stage and Live modes; does a cookie get saved?

3 September 2009 at 5:36am
Hello,
I was wondering if a cookie or session variable is being set when switching between Draft (aka Stage) and Live mode when viewing the site as a logged in admin?
If so, how I can call a a preview of a page without "switching" to that mode? For example, is there a special GET string I can add on the end like this?
http://localhost/new-page/?stage=Stage&savestate=false
I am guessing that this may take some poking around in the internals of SS, but wanted to throw it out there to the community and see if anyone else has run into a situation like this before.
Thanks!
Jeremy
-
Re: Stage and Live modes; does a cookie get saved?

3 September 2009 at 3:58pm
Yes it is stored in a cookie (or session). In order to switch page you must change the GET variable back to the 'live'. No built in way to override this cookie.
-
Re: Stage and Live modes; does a cookie get saved?

4 September 2009 at 12:43am
Thanks willr.
Could you point me in the right direction if I wanted to try and modify some of the core SS files to turn this off?
Thanks again! ...Jeremy
-
Re: Stage and Live modes; does a cookie get saved?

4 September 2009 at 8:57am
See the choose_site_stage() function in Versioned.php Line 577.
-
Re: Stage and Live modes; does a cookie get saved?

6 April 2013 at 2:39am
http://mydomain.co.uk?stage=Stage
<% if current_stage == "Stage" %>
// $current_stage
//YES do this
<% else %>ESLE do that
<% end_if %>YES is always true even if i do http://mydomain.co.uk
result //Live Yes do thissomething wrong with my if syntax
| 1055 Views | ||
|
Page:
1
|
Go to Top |



