Log1x / poet

Configuration-based post type, taxonomy, block category, and block registration for Sage 10.

Home Page:https://github.com/Log1x/poet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The custom block is not working

purplefeel opened this issue · comments

Hi,

Is there full detailed documentation? From the GitHub readme, it is unclear where I need to run that starter command or what the full preview of config/poet.php looks like.

I tried to set it up like this.

  1. Created a new file poet.php under config.
  2. Added this to the poet.php.
<?php
    return array(
	    'block'          => array(
		    'sage/callout',
	    ),
	    'block_category' => array(
		    'custom' => array(
			    'title' => 'Custom Blocks',
			    'icon'  => 'star-filled',
		    ),
	    ),
    );
  1. In the theme root folder, ran this command.
    wp acorn vendor:publish --provider="Log1x\Poet\PoetServiceProvider"

The log message says:

No publishable resources for tag [].
Publishing complete.

And I went to page editor, I am not seeing the new block expected.

Is there anything I am doing wrong?

Looking for help!

Thanks in advance!

Thanks, Davide,

I tried and there are no vendors listed:

wp acorn vendor:publish

 Which provider or tag's files would you like to publish?:
  [0] Publish files from all providers and tags listed below
 > 

Hi @purplefeel,

Had exactly the same problem. Workaround: publish by hand. Add

Log1x\Poet\PoetServiceProvider::class,

to the

'providers' => [

section in /config/app.php

This will be fixed in Acorn beta.8 hopefully.

ref: roots/acorn#158, roots/acorn#155