Torsten Baldes Posted August 28, 2014 Share Posted August 28, 2014 Is it somehow possible to show an unpublished page to users, which are not logged in? My editors would love to have a way to preview a page (e.g. sending a secret/encrypted link) to their colleagues before it goes published. So they can view it without having an account or logging in. I guess we would have to somehow hook in the viewable function (PagePermissions.module) to get this done. But i have no idea how to this. Thanks! Link to comment Share on other sites More sharing options...
cstevensjr Posted August 28, 2014 Share Posted August 28, 2014 You can make the page Hidden and put it somewhere in your structure that can't be easily guessed. From the outside, a page has to be published to be seen. Then you can give out this URL to whomever needs to see it. An Example: www.yourwebsite.com/cteded23xt4/review/preview-page-for-review/ 1 Link to comment Share on other sites More sharing options...
Torsten Baldes Posted August 28, 2014 Author Share Posted August 28, 2014 thanks for your reply! this is the way we do it right now. but as we grow and produce more and more pages, this gets slowly a mess with moving the pages back and forth in the right place and other editors finding them. so we thought, there must be a better way to do this. Link to comment Share on other sites More sharing options...
cstevensjr Posted August 28, 2014 Share Posted August 28, 2014 It sounds more that your process needs refining. I copy my unpublished pages that need review to a temporary url (as listed) and give that URL to whomever needs it. Once finished with that page, I simply trash it. The original page then gets edited or published. The original content never gets moved. It's just an affordable process to allow a review by outside interests. I use a project management system (PW based system) for any internal or client review. 2 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted August 28, 2014 Share Posted August 28, 2014 Wow! PM on PW? That sounds really interesting. Could you tell a bit more about it? Maybe in another topic... 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted August 28, 2014 Share Posted August 28, 2014 What you could do (without making a mess) Make a hidden page in you site tree as suggested, but the difference: give it a logical name like 'preview'. This 'preview' page should have it's own template, call it preview or something and enable url segments. On pages that you want to be previewed ad a FieldtypeTextUnique field, call it 'preview_code' or whatever you like. Now on the hidden preview page something like this: <?php if (count($input->urlSegments) !== 1) { throw new Wire404Exception(); } // get your page to preview $preview = $pages->get("preview_code=" . $input->urlSegment1); if (!$preview->id) { throw new Wire404Exception(); } else { echo $preview->render(); } ps, not tested Now you're able to give someone an URL like: www.domain.ext/preview/vxrj9w765omxhg87g975ghu/ 4 Link to comment Share on other sites More sharing options...
Torsten Baldes Posted August 28, 2014 Author Share Posted August 28, 2014 Thanks Martijn! This seems like a good way to do it. Will try that in the next days. 1 Link to comment Share on other sites More sharing options...
cstevensjr Posted August 28, 2014 Share Posted August 28, 2014 Wow! PM on PW? That sounds really interesting. Could you tell a bit more about it? Maybe in another topic... @Ivan Gretsky, I will. It will probably be a few months before that happens. I currently have a second generation prototype working with a few of my clients now. PW is proving to be a great platform for doing that type of thing. 5 Link to comment Share on other sites More sharing options...
adrian Posted August 28, 2014 Share Posted August 28, 2014 Is it somehow possible to show an unpublished page to users, which are not logged in? I haven't used it, but there is also this module that might suit your needs: http://modules.processwire.com/modules/process-page-draft/ 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now