Relations: Entry title not working for linked content-type
@pwizla is already working on this.
Since Oct 18, 2023.
Assessment
This issue has not been assessed yet.
Description
Bug report
Required System information
- Node.js version: 16.20
- NPM version: 8.1.0
- Strapi version: 4.9.0
- Database: PostreSQL
- Is your project Javascript or Typescript: Javascript
Describe the bug
I try to create a relation beween a Membership and a Product. When I go to the "Configure the view" I set the "Entry title" to name. Now I go to a Membership and would like to add a Product to it. But instead of having the name of the Product visible, I only see the stripe ID, which is also a text field. I definitely did set the Entry title to name. Both content-types are created via a custom plugin and have a relation like:
Membership:
"product": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::payments.product"
}
I have more relations and all have this issue, independent of what relation type they have. Even the user-permissions plugin has this issue. I extended it to have a fullName property and when I select that as an Entry name (or any other property), it still only shows the username.
I searched for it on the Discord and there were a few (mostly dead) open threads for it, but I'm a bit confused why it does not seem to have much recognition there, since in the current state, it makes the usage of relation impossible if you would like to let the user choose one manually, because no one will recognize an entity like this. My theory was at first, that this might happen only when content-types are created for a plugin, but then I tried it with a normal content-type and there it also does not work.
Or maybe I misunderstood something. Is there some easy workaround? Would it help if I remove the whole content-type and create it new, but with the name property first now as an attribute?
Steps to reproduce the behavior
- Create a relation between two content-types
- Change the Entry title
- Go to the content-type, which has the relation and the labels in the list will not display the chosen entry title
Expected behavior
Entry title will be taken for the relation labels.
Screenshots


- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 1.3k
- Avg merge
- 22h 59m
- Merged PRs (30d)
- 102
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from strapi/documentation
-
admin-panel api bug documentation needs-human-review plugins priority
Difficulty 4/5 3-5 days Newbie friendliness 44/100
strapi/documentation#3025 · 11 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 18/100
strapi/documentation#2509 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
strapi/documentation#2316 · 2 reactions ·
-
strapi/documentation#2311 · 3 comments · 1 reaction · 1 assignee ·
-
strapi/documentation#2143 · 22 comments · 5 reactions · 1 assignee ·
All issues in strapi/documentation
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100