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

Question: how do you add fields to the group? #9

Open
edalzell opened this issue Nov 2, 2024 · 1 comment
Open

Question: how do you add fields to the group? #9

edalzell opened this issue Nov 2, 2024 · 1 comment

Comments

@edalzell
Copy link

edalzell commented Nov 2, 2024

How do you add fields to the group? I can't see anything in the docs about that.

@eminos
Copy link
Owner

eminos commented Nov 3, 2024

Oh shoot, you're right. There is no instructions in the README.
It's kind of the same as the Tabs Fieldtype. Any field that comes AFTER the Inline Group field in the blueprint will be grouped (visually in the CP).
https://github.com/eminos/statamic-tabs?tab=readme-ov-file#usage

This should be considered an experiment really since it works very differently from every other Statamic Fieldtype.
There is not really a concept in Statamic of a Field controlling behavior of sibling fields in this way.
But can still be useful sometimes and it's only doing stuff visually in the CP, so no change in the data structure (unlike the official Group Fieldtype which groups the saved data in an object).

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

No branches or pull requests

2 participants