I can set up the metadata of an output PDF via File → File info
, but when using Type → Text variables → Define
(as hinted here), something like Metadata → Title yields a "no intersecting link" - apparently this option is used for image captions and not for metadata of the InDesign document itself.
So, how to keep some text in the InDesign document and one of its metadata fields in sync?