MWDelaney / sage-acf-wp-blocks

Composer library for generating ACF Gutenberg blocks from templates. Intended for use with Roots/Sage (http://roots.io)
346 stars 66 forks source link

Block breaks if I try to have a different name for the file #64

Closed syedumairumar closed 2 years ago

syedumairumar commented 3 years ago

This works amazing. My only complaint is that basically I have been put in a unique situation where I must change the name of the block file to be different than what's the block name. As of right now, if I change the name of the file, I get the following message "block doesn't exists" until I re-add the block. The problem is, I've already got several pages built and its going to be not less than a night mare to have to re-add them all after the file name change.

As of right now it seems like it makes the file name to be the name of the block itself. I'd love to know if there's a way where I can have a different block name than what's the file called.

MWDelaney commented 2 years ago

This is basically a pitfall of Gutenberg itself. Fixing this is sadly outside the scope of this plugin.