Replies: 2 comments
-
Finally I found it `admin: { useAsTitle: "name" }, to collection config
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks so much for your solution! I have two collections, Projects and Skills, and now it displays the skill name correctly in my select field: const Projects: CollectionConfig = {
slug: "projects",
admin: {
useAsTitle: "name",
},
access: {
read: () => true,
},
fields: [
{
name: "name",
type: "text",
},
{
name: "description",
type: "text",
},
{
name: "picture",
type: "upload",
relationTo: "media",
},
{
name: "githubUrl",
type: "text",
},
{
name: "url",
type: "text",
},
{
name: "skills",
type: "relationship",
relationTo: "skills",
hasMany: true,
},
],
};
const Skills: CollectionConfig = {
slug: "skills",
admin: {
useAsTitle: "name",
},
access: {
read: () => true,
},
fields: [
{
name: "name",
type: "text",
},
{
name: "logo",
type: "upload",
relationTo: "media",
},
{
name: "experience",
type: "text",
},
],
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this list of id is so hard to read, how can we set other field here, example

cateName
field will be shown here?I tried to find in documentation but can't find or am I missing it ?
Beta Was this translation helpful? Give feedback.
All reactions