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

Create a Block list block #27

Open
bobbingwide opened this Issue Feb 13, 2019 · 3 comments

Comments

Projects
None yet
1 participant
@bobbingwide
Copy link
Owner

bobbingwide commented Feb 13, 2019

Following on from #24 (comment) I now have requirements for a Block list block.

This block will be used on the home page for a component which delivers blocks.

Requirements

  • Create a list of grid of the blocks associated with a particular block type name namespace prefix.
  • Display the icon and block name
  • Optionally, link to the block post where the block is documented

Proposed solution

  • Use existing logic for Block icon and Block info to populate the List
  • Construct the link using the same logic as that used by core to create permalinks.
  • Layouts to be List, Table and Grid

Block type name: oik-block/blocklist
Title: Block list
Icon: block-default

@bobbingwide

This comment has been minimized.

Copy link
Owner Author

bobbingwide commented Feb 20, 2019

Even with the batch routine for creating block posts, it’s still too slow populating blocks.wp-a2z.org with all the blocks delivered by a plugin.

Pragmatic solution

  • Use the Block list block to generate the oik batch commands to run.
  • Display in code or pre
  • Run locally for a locally installed version of the plugin
@bobbingwide

This comment has been minimized.

Copy link
Owner Author

bobbingwide commented Feb 22, 2019

Now I’ve created quite a few blocks automatically I see the need for a Keyword taxonomy - flat to store the (up to 3) keywords for each block. A new command is required to update the blocks to set the keywords. See bobbingwide/oik-shortcodes#64

@bobbingwide

This comment has been minimized.

Copy link
Owner Author

bobbingwide commented Mar 19, 2019

The Keyword taxonomy is no longer limited to 3 keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.