! I had read through this already, but I don't want to show fields from referenced documents, I want to delgate the presentation that's defined in the referenced document. Whichever manner the referenced document's presentation is defined (with or without
, for instance), I want to have that same presentation without copying the code for the referenced document's presentation over and manually nesting the paths. Does this make sense?
Aug 26, 2021, 5:44 AM
I’m afraid I don’t understand, actually! Are you trying to have the referenced document define the preview on the document doing referencing, so that they effectively have the same preview?
Aug 26, 2021, 6:30 PM
That's it. So with type
having a field
, I would like an instance of
to preview just as if I was previewing its field
. But do it in such a way that the preview definition of
knows treats the logic for the preview of
as a black box. Without the latter constraint I could just duplicate the code, and prefix all select paths with
, but this create a rather tricky situation for code maintenance as my intention is now non-trivially duplicated. Now that I say it out loud, I suppose I could define the preview logic as a reusable function: