I've enabled the Document ID on my site collection. What property do I use to put a link in the page layout with the document ID. (to save the user from having to go to page > edit properties > view properties)


You can use following URL's


Change XYZ with ID of document.

  • how can I get that document ID programmatically? – Trevor Newhook Dec 8 '14 at 21:57
  • You mean the ID of the current page? – Amal Hashim Dec 8 '14 at 22:02
  • yes - I want to insert that link, but include the document ID – Trevor Newhook Dec 8 '14 at 22:11
  • You can get using _spPageContextInfo.pageItemId – Amal Hashim Dec 8 '14 at 22:20
  • could you give me a copy of a link I should use? – Trevor Newhook Dec 9 '14 at 13:43

I ended up using a snippet, and put that in the page template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.