Blocks catalogued to date
Well I’ve made a start… 25 done, some with featured images. The table below shows the current status of the Catalogue. At this stage many of the blocks are marked as Under construction. These appear in the list with no values for Block Categories or Featured image. See the Update notes below.
Only 115 or so to do in the 9 plugins chosen so far.
Update – 21 Feb 2019
I’ve added some logic to the Block list block to display the list as a series of batch commands. This example is for the blocks with the namespace yoast
, which is used by Yoast SEO.
cd ~/public_html/wp-content/plugins/oik-shortcodes/admin
oikwp oik-create-blocks.php yoast/faq-block "FAQ" yoast-seo url=blocks.wp-a2z.org
oikwp oik-create-blocks.php yoast/how-to-block "How-to" yoast-seo url=blocks.wp-a2z.org
Running each command on the server creates an instance of a Block custom post type for the selected Block. The post is populated with the basic structure for each block. It’s clearly labelled as “Under construction”.
The purpose of doing this is to quickly populate the catalogue with the blocks delivered by the plugins. This will help me to decide what additional information needs to be stored for each Block. Note that some information is originally only available in the block editor and not available in the server.
Semi automatically generating the Block post for each block delivered by a plugin is not an ideal solution, but it’s a good start. There are now 918 blocks listed.