tinacms / tinacms

A fully open-source headless CMS that supports Markdown and Visual Editing
https://tina.io
Apache License 2.0
11.85k stars 602 forks source link

🐛 Unable to use data from a referenced collection in itemProps method #4608

Open PothieuG opened 3 months ago

PothieuG commented 3 months ago

video - https://youtu.be/82Nbz_gOgIQ

I have a list of objects called highlighted speakers that references a speaker collection.

Currently, it is impossible to access the information in the speaker collection to use it in the itemProps method to display a name (or other information) in the list displayed in Tina.

I have to create another field (e.g., a name field) that the user needs to fill in, and use that property to achieve the desired outcome.

image Figure: ❌ We can't use the item prop in the itemProps method, so we need to add a custom label which will be displayed for all the items of the speaker list

image Figure: need to add a field that the user need to fill in, as a workaround.

tkapa commented 2 months ago

Hey @wicksipedia,

FYI - I think that this could be fixed along with implementing #4641