How could we add a repeater-field to our module configuration pages? I tried to add it like any other input field, but no success! (Just as a sidenote: Unfortunately my php skills are really restricted)
This is my current state, but it just throws an exception:
Error: Exception: Unknown column 'field_title.count' in 'field list' (in wire\core\Database.php line 118)
public static function getModuleConfigInputfields(array $data) {
$data = array_merge(self::getDefaultData(), $data);
$inputfields = new InputfieldWrapper();
...
$field = wire("fields")->get("title");
$field->type = $modules->get("FieldtypeRepeater");
$repeater = wire("modules")->get("InputfieldRepeater");
$repeater->name = "somethingUnique";
$repeater->add($field);
$repeater->page = wire("page");
$inputfields->add($repeater);
...
return $inputfields;
}
Any idea what I'm doing wrong, or how we could achive this?