statamic-factory
statamic-factory copied to clipboard
Feature/#8 imported fieldsets
For #8, I first tried simply adding some fixes so the fieldsets will be ignored.
I'm not entirely familiar with the codebase of Statamic yet, but I figured out with a bit of trial and error to actually fetch the fields that are set in the fieldsets and map them as well, so factory for fieldsets can also be supported.
I tried reusing the same recursive structure you already made, so if there's any special fields used within a fieldset it should still work as it used to (like a Replicator field within a fieldset for example).
I've given this a closer look and I think this should to be approached from a different angle. I started working on a bigger refactor.
How's it going so far? Running into any issues?
I started working on the refactor. But haven't had time to complete it. If you can't wait, you can always pull this PR into your project in the meantime.
Ok good to know, take your time.
I already pulled the code in my own project, so I'm not in a hurry, no worries ;)
Imported fieldsets will work with the next major release.