-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Themes available from a token into URLs #1787
Comments
I'm confused. Setting a dev theme automatically shows the in-dev experience to anyone logged in. Usually, letting your client have a managing editor login allows them to see what's going on, and they can sign the changes off ready for go-live. If they sign in on different devices, that's the experience they see. So you want some URL param to deliver the in-dev experience without being logged in? |
@Bloke —Use case: I am (or the client / stakeholder / … is) logged in on a desktop computer and want to view the result on a small screen device. All the while editing the page(s) (text/element placement/design/…). |
@phiw13 Yeah, that would be more handy than having to log in on a second device, which kicks you out of the desktop. I usually get round it with a pair of accounts. Not ideal. I can't think of a simple way to do this, besides assigning each theme some unique hash (somehow) so you can tack that onto the URL and have it render the dev theme instead of the live one. It would have to be something unguessable, otherwise anybody could potentially see it. |
No worries. Just an idea. The reason why I said I don't think it's possible. |
@cara-tm Not necessarily the answer you are looking for, but might you be able to leverage parse_page() in combination with gps to do that? Make yourself a temporary page template that serves as a switcher: it checks for your url variable and outputs either your new or old page_template. Something like this (untested):
Set that as your section's page template and then call BTW: the PHPdoc function example here is lacking a value for 'theme'. Aside: I sometimes use this method to route a page template through to another, e.g.
|
I tried but it doesn't seem to work... |
Is your feature request related to a problem?
No!
What is the feature?
I don't know if it's possible: it will be very useful to have a kind of token added into the URL to serve a definite theme (maybe governed via "Preferences"). That feature could allow anybody to test a new website model (for clients, for online tools, for SmartPhones checking, etc.)
The text was updated successfully, but these errors were encountered: