Versioned::choose_site_stage should not rely on Session

37 views
Skip to first unread message

g4b0

unread,
Nov 5, 2014, 6:03:50 AM11/5/14
to silverst...@googlegroups.com
Hi all,
Like in subject, I think that Versioned::choose_site_stage should rely only on GET param, it should not be written in session since end user are not advised that they are viewing a Stage site, causing unnecessary alarm to the less clever ones.

g4b0

Thierry Francois (colymba)

unread,
Nov 5, 2014, 10:13:36 AM11/5/14
to silverst...@googlegroups.com
I would agree. I've been having all sorts of issues not knowing which stage am in anymore or coming back to a site later on and seeing the Draft stage instead of the Live one..
..making things very confusing...

T

Daniel Hensby

unread,
Nov 5, 2014, 10:17:49 AM11/5/14
to silverst...@googlegroups.com
I can't say I agree it should be in the URL, it'd mean having to re-write all URLs on the page depending on the stage to make sure state wasn't lost when navigating from one page to another.

Really, a better solution is some kind of banner, flag or notice that conveys "you're viewing the draft site".


Daniel Hensby
Director

Better Brief

e: daniel...@betterbrief.co.uk
t:  020 7183 9266
w: http://www.betterbrief.co.uk

--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at http://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.

g4b0

unread,
Nov 5, 2014, 10:39:19 AM11/5/14
to silverst...@googlegroups.com
It depends on the use case. Maybe a better solution is to have its behaviour decided by a config value, having the actual as default.

g4b0

unread,
Nov 5, 2014, 11:22:41 AM11/5/14
to silverst...@googlegroups.com

Thierry Francois (colymba)

unread,
Nov 5, 2014, 1:10:12 PM11/5/14
to silverst...@googlegroups.com
Having it in the URL probably isn't the best for sure.
But having some kind of tool/banner to switch back and some kind of flag in the cms would be great, because things get very confusing quickly (something been talked about in other threads I think).

My main issue is in the cms when the "preview pane" shows up (99% of the time I didn't even ask to see it) which stets the stage for the site, and even after closed the stage is keep for the rest of the time.
Having to reopen the preview pane to switch back stage isn't practical. But this all think is probably better talked about here: https://groups.google.com/forum/#!topic/silverstripe-dev/JGtcs9sF1Aw

I do like the idea of having the option to having the stage persist or not though.

Stevie Mayhew

unread,
Nov 5, 2014, 2:58:06 PM11/5/14
to silverst...@googlegroups.com
I agree - its extremely confusing. 

There is http://addons.silverstripe.org/add-ons/jonom/silverstripe-betternavigator which provides a nice little flag showing whether you are in staging or live mode which alleviates some of the pain :)

Damian Mooyman

unread,
Nov 5, 2014, 3:55:20 PM11/5/14
to silverst...@googlegroups.com

You should check out the SS navigator feature. It allows you to put a mini "admin" bar on the page which isn't visible to non editors. It shows the current stage and provides a convenient CMS link and version changing link.

$SilverStripeNavigator

Does that work?

g4b0

unread,
Nov 6, 2014, 3:40:29 AM11/6/14
to silverst...@googlegroups.com
It seems interesting, but it's the first time I see it. From which version of SS it's around?

Thierry Francois (colymba)

unread,
Nov 6, 2014, 3:59:09 AM11/6/14
to silverst...@googlegroups.com
SS Navigator is all fine (although I prefer not to use those toolbars), but a simple switch in the CMS would go a long way :)
Reply all
Reply to author
Forward
0 new messages