Most projectdoc Macros render the data-projectdoc-id when rendering a property of a document. The Selection Macros, including the Iteration Macro, should also support this.