I’m building a plugin that requires a list as custom input. Ideally I’d like to allow the user to input an arbitrary number of elements in this list. I understand that when constructing settings.yml, there is the
type: list option that allows for input of an arbitrary number of strings.
However, the “list” I’d like to make is more complex than a string. Each element has three text fields and one image. The solution I have right now is to hard code 10 of these elements in the settings.yml, however this requires that I define 40 custom variables.
Is there a better way to do this?