Move fieldset partial to addon

Hi everybody,

currently I do not have an idea how to do this and if it's possible. I am using version 2 of Statamic and looking for a solution for the following:

My settings/fieldsets/default.yaml looks like the following (reduced to the minimum):

title: Default
sections:
  content:
    fields:
      blocks:
        type: bard
        sets:
          text:
            fields:
              partial:
                type: partial
                fieldset: text
          gallery:
            fields:
              partial:
                type: partial
                fieldset: gallery

I have separated all the field sets with the fieldset yaml files in:

/site/settings/fieldsets/text.yaml
/site/settings/fieldsets/gallery.yaml

and the partial templates in:

/site/themes/THEME/partials/fieldsets/text.html
/site/themes/THEME/partials/fieldsets/gallery.html

I am thinking about using these partials in different projects so I would like to create an addon with the fieldset settings and the html files.

Can you point me to the next steps how to create a working addon? If any more information are needed let me know.

Thanks
Steffen

>>>>>>> Unanswered <<<<<<<
1 Reply
2 Followers