gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Plugin needs menu option to add New Page

Open maddisondesigns opened this issue 9 years ago • 8 comments

Issue Overview

At the moment, the Gutenberg plugin provides the option to add a New Post. It doesn't provide the option to add a New Page though, even though you can edit a page in Gutenberg.

Expected Behavior

I should be able to add a new Page.

Current Behavior

I have to add a new Page using the existing Pages > Add New menu option. I then have to save as draft, browse browse back to the Dashboard and then re-edit the page using Gutenberg.

Possible Solution

Simply add a New Page option to the Gutenberg menu.

Plugin Version 0.7.1

maddisondesigns avatar Aug 05 '17 10:08 maddisondesigns

I agree being explicit and adding 'new page' could be good for users.

karmatosed avatar Sep 24 '17 14:09 karmatosed

I'd like to take this one on.

grantpalin avatar Oct 02 '17 19:10 grantpalin

That's great @grantpalin, look forward to your pull request!

karmatosed avatar Oct 02 '17 21:10 karmatosed

Added a PR. A couple of issues I have with it:

  • Both subitems are bolded when one is active: image I suspect that I need to distinguish the menu-slug attribute on the add_submenu_page calls, but trying that yields: image And in both cases the entry is saved as a post.
  • Ensuring that Gutenberg knows it is doing a page and not a post - haven't yet found out how

grantpalin avatar Oct 03 '17 03:10 grantpalin

I am New to Open Source Contribution world, can I contribute on this issue ? I'd Like to take this issue. @mtias

amarpathak avatar Oct 16 '17 16:10 amarpathak

With bdf94e6 landing, we don't need this menu item anymore.

pento avatar Oct 18 '17 10:10 pento

@pento Is this forcing Gutenberg to be the default editor when you click the Add New button on the Posts and Page screens? I really hope that's not the case. The Gutenberg plugin shouldn't be making itself the default editor. It's a plugin for a reason and shouldn't be changing the default editing experience. If this is the case, is there a Github issue you can link to that is discussing this?

maddisondesigns avatar Oct 19 '17 02:10 maddisondesigns

@maddisondesigns Discussed on https://github.com/WordPress/gutenberg/issues/2824

grantpalin avatar Oct 19 '17 03:10 grantpalin