-
Notifications
You must be signed in to change notification settings - Fork 1
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
Aggregate Fieldtype #638
Comments
I just realized that this could probably also be done with fieldsets. Fieldsets already serve as a wrapper for multiple fields. You could add an option to save the data of the imported fieldset in its own key. Similar to the prefix option. The only drawback with this approach is that you lose the capabilities of a true fieldtype with its PHP file. |
I dug a little deeper. If you wanted the The same "only top-level fields can be localized" issue goes for Bard, Replicator, and Grid fieldtype. Might be connected to this: #439 |
Similar if not the same idea: #210 |
The top level fields issue is a complicated one. We don't have a good way to know if you want to override just a nested key(s) or the whole thing. |
Yeah, I figured. Another beefy idea on your table. Fun. |
Just came across this issue... it's now possible using the Group fieldtype. |
I'm building a fieldtype that acts as a wrapper for multiple fields. One of the reasons is to save the data in a separate array.
I want this:
… not this:
My fieldtype looks the same as the SeoProFieldtype and ResponsiveFieldtype.
The problem with this approach is that the
syncable
property on thepublish-field
component doesn't work as expected. It just works for the wrapper fieldtype itself but not for the fields within. I could imagine that there are other issues with this approach as well.My proposal is a new aggregate fieldtype that can wrap multiple fields. This might be connected to the UI Fieldtype idea.
The text was updated successfully, but these errors were encountered: