Allow useAsTitle
to be set to a nested field in tabs
#9956
Replies: 1 comment
-
I agree, this should be supported. For custom ID fields this works assuming you don't have a For useAsTitle, we should do the same logic. In your case you are using a named tab and I think I agree, that it should be possible. As long as the top level field isn't an array or block. If anyone has interest in making a PR for this I would be happy to review. The PR will need to demonstrate this in a test config with a collection that covers named and unamed top level fields. You would have e2e coverage to show that the frontend and Payload APIs are functional in this way. You would also want to demonstrate a relationship field pointing to this collection still works since we need to be able to allow options showing the titles. |
Beta Was this translation helpful? Give feedback.
-
Currently, when we attempt the following:
We encounter the following error:
"useAsTitle" cannot be a nested field. Please specify a top-level field in the collection
From a UX perspective, it would be much better if we could set the field as a nested field inside the tabs. We’re forced to use the ID, which is not ideal ...
Beta Was this translation helpful? Give feedback.
All reactions