I am creating a custom field that is going to be a relational field with some added functions.
Right now, I am trying to figure out how to add an option to my list that lets the user select a collection-type from my app as the relation field’s relation.
app.customFields.register({
name: "nested-relation-list",
pluginId: "strapi-nested-relation-list",
type: "json",
intlLabel: {
id: "strapi-nested-relation-list.map.label",
defaultMessage: "Nested Relation List",
},
intlDescription: {
id: "strapi-nested-relation-list.map.description",
defaultMessage: "Add Relation",
},
icon: PluginIcon,
components: {
Input: async () => import("./components/NestedRelationList"),
},
options: {
base: [
{
items: [
{
name: "Relation",
description: "some desc",
type: "select",
options:
// I want to add as options, my other collection-types dynamically
}
]
}
]
},
});
This topic has been created from a Discord post (1232424076539199518) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord