I hadn't seen this asked, so I thought I'd broach the subject.
I would like to copy fields into a new field group, and then add/delete a few of those fields from the new group, to save time of building one again from scratch.
Does Craft have a way to do this?
1 Answer
No, there's nothing built into Craft that lets you do this.
Please note though, that you can reuse fields across sections in Craft. Field groups is just an organizational layer on top of fields to make it easier to add a group of fields to a section, and to be able to find fields more easily. It doesn't give any additional meaning to the fields. So you can't have a field with the same handle in different field groups, and it doesn't make sense to duplicate a field that's actually used across sections.
If you need to duplicate fields (because they're actually suppose to be different fields), I highly recommend the Field Manager plugin by Verbb (Craft 2 and Craft 3 versions available) which makes it super easy do to this, and in general provides a much better interface to manage fields.
-
Thanks. I've now got the Field Manager plugin. Whenever I clone a group or the individual fields, does the plugin handle distinct naming, or is it up to the user to handle the naming?– buck1112Commented Mar 21, 2018 at 19:29
-
You have to give each field a unique handle, as I said in my reply. The label can be different, though. Commented Mar 22, 2018 at 9:29