Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Add group fieldtype #210

Closed
goellner opened this issue Jun 22, 2020 · 2 comments · Fixed by statamic/cms#8836
Closed

FR: Add group fieldtype #210

goellner opened this issue Jun 22, 2020 · 2 comments · Fixed by statamic/cms#8836

Comments

@goellner
Copy link

goellner commented Jun 22, 2020

As discussed in Discord (https://discordapp.com/channels/489818810157891584/489825364902805505/703140537598869504) a while ago, it would be super helpful to have a group fieldtype to reuse the same field and don't have to prefix every sub field.

Ben built an addon for v2, which does exactly that: https://statamic.com/marketplace/addons/group

@JonKaric
Copy link

JonKaric commented Jun 5, 2021

I'm currently building a site where a group fieldtype would be useful. There is currently no workaround that is clean, either your data is dirty, your templating is dirty, or both. The nearest thing is the grid fieldtype, but that saves data as an array - even if you only have 1.

A group field type makes sense especially in the context of fieldsets. Would be nice to just import a fieldset into a group and have this as the output:

lg: 
  image:
  container:

Instead of bringing in individual fields and prefixing:

lg_image: 
lg_container:

@jasonvarga
Copy link
Member

Implemented in statamic/cms#8836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants