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

Investigate and document use of reusable blocks in Gutenberg #79

Open
3 tasks done
benlk opened this issue May 30, 2019 · 6 comments
Open
3 tasks done

Investigate and document use of reusable blocks in Gutenberg #79

benlk opened this issue May 30, 2019 · 6 comments

Comments

@benlk
Copy link
Collaborator

benlk commented May 30, 2019

  • Is the Group block available in Core yet?
  • Can the Group block be made reusable? (yes)
  • How can the reusable block be edited?
@benlk benlk self-assigned this May 30, 2019
@benlk
Copy link
Collaborator Author

benlk commented May 30, 2019

@benlk
Copy link
Collaborator Author

benlk commented May 30, 2019

Reusable blocks are not documented in WordPress's user handbook (https://wordpress.org/support/article/wordpress-editor/) or developer docs (https://developer.wordpress.org/block-editor/), so we should think about submitting any documentation we create for INN's users here to WordPress.org: WordPress/gutenberg#11210

@benlk
Copy link
Collaborator Author

benlk commented May 30, 2019

If we're going to want to rely on reusable blocks, we may want to add a sidebar link directly to the list of reusable blocks, as described in WordPress/gutenberg#15549 (comment):

add_action( 'admin_menu', 'linked_url' );
function linked_url() {
    add_menu_page( 'linked_url', 'Reusable Blocks', 'read', 'edit.php?post_type=wp_block', '', 'dashicons-editor-table', 22 );
}

add_action( 'admin_menu' , 'linkedurl_function' );
function linkedurl_function() {
    global $menu;
    $menu[1][2] = "/wp-admin/edit.php?post_type=wp_block";
}

@benlk
Copy link
Collaborator Author

benlk commented May 30, 2019

I expect that reused content will last for several paragraphs. There's no interface to make multiple content blocks reusable in a coherent chunk, so we'll have to make those chunks of content into a single block somehow. That means we'll need a container block, which is what the Group block is.

To get the Group block, we'll need to install the Gutenberg plugin on staging, at least until the next major WordPress release.

@MirandaEcho / @kaylima what documentation do you think we'll need for our users?

That I can foresee:

@benlk
Copy link
Collaborator Author

benlk commented Jun 3, 2019

On hold until after the training meeting.

@annezazu
Copy link

Noting that I just worked on and published this doc: https://wordpress.org/support/article/reusable-blocks/ Closing the loop just in case it's helpful :)

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

No branches or pull requests

2 participants