1

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)

2 Answers 2

1

You can use following URL's

http://site/Library/Forms/DispForm.aspx?ID=XYZ
http://site/Library/Forms/EditForm.aspx?ID=XYZ

Change XYZ with ID of document.

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

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 and acknowledge you have read our privacy policy.

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