Skip to content
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

Feature request: Link the "Draft" status indicator to the sharing URL #15

Open
Scotchester opened this issue Apr 7, 2017 · 2 comments

Comments

@Scotchester
Copy link
Contributor

Current behavior

The "Draft" status indicator links to nothing

Desired behavior

The "Draft" status indicator would link to a page's sharing URL, so that people on an editing screen could click directly to the shared page, instead of having to go up a level to access that page's "More" menu to use the "View sharing link" option.

@chosak
Copy link
Member

chosak commented Apr 12, 2017

@Scotchester thanks for the suggestion. I agree that it's a bit of a pain to have to go up a level to get to the link.

How would you propose to handle pages that are in "Live + Draft" state?

image

In Wagtail these work the same way that "Live" pages do -- linking to the page's URL. I don't quite like the inconsistency of having "Draft" link to a shared link but "Live + Draft" linking to the live link.

Here's the Wagtail code that implements that button. One (possibly hacky) option would be to implement two side-by-side buttons in the "Live + Draft" state, each one linking to the respective page version.

@Scotchester
Copy link
Contributor Author

I love the idea of hacking it into two separate buttons, but I know we're trying to do less hacking :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants