Skip to content

Override Publish changes button + Return all drafts #1237

Answered by jmikrut
adam-mrozik asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @adam-mrozik — good question!

  1. Overriding the Publish changes button is currently not possible, but it would be a great addition. We would accept a PR to add this functionality for sure. It would just function like how swapping in a custom component works now - except you'd swap in your own Publish button. Would be cool. Can I ask what you're looking to do with this?
  2. Yes, you can, although I think there's a bit more that we should think through here. What are you trying to do? Finding all pages that have never been published is easy - just use where: { _status: { equals: 'draft' } }. But that will not send back pages that have been published, but have newer drafts available. To get bo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@adam-mrozik
Comment options

Answer selected by adam-mrozik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants