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

Add CPTs for: blocks, meta boxes and sidebar boxes #61

Open
bobbingwide opened this Issue Nov 28, 2018 · 5 comments

Comments

Projects
None yet
1 participant
@bobbingwide
Copy link
Owner

bobbingwide commented Nov 28, 2018

In q.w/hm I started documented Gutenberg blocks as CPT's created using oik-types. I now want to formalise the definitions of the CPTs. For oik plugins the most sensible place to do this is in the oik-shortcodes plugin.

Type Plural Singular Description Hierarchical? Archive?
block Blocks Block WordPress Blocks and their mapping from meta boxes Y Y
metabox Meta Boxes Meta Box Meta boxes used in the Classic Editor Y Y
sidebar Sidebar boxes Sidebar box Side bar boxes appear as Settings. Y Y

The new CPTs also require a number of fields.

Note: wp_block is a core CPT used to store reusable blocks. It has the same labels as block.

@bobbingwide bobbingwide self-assigned this Nov 28, 2018

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Nov 28, 2018

Note: In Gutenberg v4.5.1 Sidebar boxes are known as Panels. There are Document panels, Advanced panels and, I assume, Block panels.

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Dec 9, 2018

Fields for the block CPT are:

Field Type Notes Example
_block_name text Unique block name oik-block/wp
_block_icon sctext Icon for the block [bw_dash wordpress SVG64]
block_category category Block category static, dynamic, server side rendered
@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Dec 15, 2018

Looks like we'll need Block examples ( similar to Shortcode examples ) before Meta boxes and Sidebar boxes / Panels.

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Jan 5, 2019

We also want to add a Blocks tab to any plugin that delivers Blocks.

bobbingwide added a commit that referenced this issue Jan 5, 2019

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Jan 6, 2019

There are two co-requisite changes for adding the Blocks tab.

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