[ Feature Request ] - Ability to re-use Field Groups across Sections/Field Layouts. #10501
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
You can sort of do this already with Matrix: make a new Matrix field, define exactly one block type and put the fields you want in that, and then depending whether you want to require the group, and whether you want to allow repeating or not, possibly configure the Matrix to have a minimum and maximum number of blocks. But the challenges with this are that the UI is clunky (even though there's only one block type option, you get nested headings for the matrix itself, then for the block type), and that it's currently impossible to nest a Matrix within another Matrix and so you wouldn't be able to reuse this set of fields in a content builder Matrix. What I'd like is either for this use case to get its own treatment (a "group" field type, perhaps), or for Matrix to support this use case better, i.e.
|
Beta Was this translation helpful? Give feedback.
-
Not exactly sure how to word the title of this but basically I would love to see Craft employ a system similar to the Advanced Custom Fields (ACF) plugin for Wordpress in which you can have "field groups" that act like containers that can then be added to pages/post types via the plugin admin based on the content type. This is especially useful when your site has a lot of Singles or you are often creating new Content Types (Channels, Structures).
Example: let's say I have a
Hero Fields
field group for creating a hero banner at the top of pages/posts -- and in that hero group, I have multiple fields likehero title
,hero tagline
,hero image
, etc.In Craft, I can have a group of fields called
Hero Fields
-- and every time I create a new Channel or Single or Structure... I have to go into Entry Type/Field Layout and create a tab, and then drag those fields to that tab over and over again for each new "content type" I create.In Wordpress, using ACF, I would create the above stated field group and add the needed fields. Then, I would simply go into the settings in ACF for the particular field group and choose "Show this field group for the following content types" and then check off the ones I want - "posts, pages, recipes, team members, etc..." -- Those content types would automatically have that "tab" with all the needed fields in the "create/edit" screen without the need to repeat the same steps over and over.
As you can see, this is a powerful way to not only re-use fields...but to quickly setup new sections without having to create new tabs every time, and then drag and drop 10 fields or whatever.
Beta Was this translation helpful? Give feedback.
All reactions