When I create a custom metadata tag in the sidebar titled ‘Dedication’ and give it a value, it doesn’t seem to be global. I have to put that data in on every page that I use it before compiling.
For example, it works here (which I would expect)
but if I use the placeholder in another document, it doesn’t get picked up in the compile - unless I add that data again in the side bar for that particular document.
The custom metadata field is global – that is, every document will have such a field associated with it. When you open a document and type contents into that field, what you have typed is some metadata and that metadata is now associated with that document. In short, metadata contents is by design document specific.
This makes using a metadata field for the text of the dedication of your book kind of an odd use of the custom metadata facility – since there is only one document in your project for which you actually want this metadata.
A more canonical use of a metadata field might be one used to specify the point of view character in each chapter, or perhaps to tag docs in which certain character appears, etc.
Suggest you just type the dedication into the dedication page doc!
If you do need some kind of “global text” concept, the best tool for the job is the <$include> tag, which injects the main text content of one item into the place where you type in the tag. Either type that in and create an internal document link to the other binder item with the text, or specify the full path to an RTF or TXT file on the disk if you need multiple projects to use the same snippet.