statamic-factory icon indicating copy to clipboard operation
statamic-factory copied to clipboard

Add support for imported fieldsets

Open aerni opened this issue 4 years ago • 3 comments
trafficstars

aerni avatar Sep 06 '21 13:09 aerni

I've been testing a bit with this addon in a new statamic project.

Right now it seems that whenever a fieldset is present in the blueprint (even when there's no factory settings for that fieldset), I get the error Undefined array key "field".

The only solution so far seems to be to comment out any fieldsets from the blueprint when running the factory.

Do you think it could be an easy solution to simply ignore any fieldsets (I think they can be recognised by the import key) for now?

Edit: Or maybe even better, ignore any fields without the field array key

Lenitr avatar Jun 30 '22 11:06 Lenitr

That sounds like a reasonable workaround for now. Feel free to open a PR.

aerni avatar Jun 30 '22 21:06 aerni

Allright, I'll try to do it (hopefully soon), I'll pass you a PR when it's done

Lenitr avatar Jul 01 '22 07:07 Lenitr

Imported fieldsets will work with the next major release.

aerni avatar Aug 28 '24 20:08 aerni