Hallo Guys,
is there an existing solution to provide both link types in one component?
Kind regards
Joni
Hallo Guys,
is there an existing solution to provide both link types in one component?
Kind regards
Joni
You could use a set field.
https://getcockpit.com/documentation/reference/fieldtypes
{
"fields": [
{"name":"external_link", "type": "text"},
{"name":"collection", "type": "collection-link",
"options":{add the collection-link field options here}
}
]
}
Or create your own custom field. Here is some inspiration: https://github.com/raffaelj/cockpit-scripts/tree/master/custom-fields
Hey @raffaelj,
thx for your suggestion. It works!