Closed ciriousjoker closed 1 year ago
Mmm, you should be able to customise the preview properties of a ref: https://firecms.co/docs/properties/config/reference#previewproperties
I think you can customise those by using a PropertyBuilder, based on the value: https://firecms.co/docs/properties/conditional_fields
Let me know if that works
I didn't even know about the builders so far. Code is way cleaner now, thanks a lot! :)
We have a
someRef
property that can be eithersomecol1/docid
orsomecol2/docid
.We want to preview those documents based on a common map property "name" (specifically "name.en").
Current workaround:
someRef
intosomeRef1
andsomeRef2
Solution works but is obviously not optimal. I can't suggest a better solution though aside from "make it easier somehow" :D