Best way to create custom field type that manages multiple fields
Created 7 years ago by mattcdavis1

I don't think there's any example of this in core. Repeater / Grid manage multiple fields but they are a separate table. For example, the field type "Calendar" has start_date, end_date, and some other fields (we have some conditional fields in here so that's why i don't want to assign these to the main stream).

If i assign all the fields i need to the stream they will show up outside of my field type. If i don't assign the fields i need to the stream, is there still a way to get form builder to render / validate / save my (field type) fields for me or do i just need to bypass form builder to manage my field type fields?

ryanthompson  —  7 years ago

A calendar / address with international support are a couple other good examples. Checkout the Geocider field type. It maintains a number of columns which you could easy use raw columns or a stream. But it might give you some ideas: https://pyrocms.com/documentation/geocoder-field-type/latest

It's on GitHub under the private repos.

mattcdavis1  —  7 years ago

great - thanks!