Rules

Secret ingredients to quality software

Edit
Info

Do you know how to create a link to a URL in SharePoint?

Last updated by Tiago Araujo on 06 May 2016 10:44 pm (about 5 years ago) See History

TODO TIAGO: ADD IMAGE OF WINDOWS EXPLORER (4 files in it) AND ANOTHER WITH SHAREPOINT DOCUMENTS LIBRARY

You may need a link in a SharePoint document to help you navigate to a different URL (like shortcut in Windows), there are different ways to implement this.

A. Create a shortcut in windows, then upload the shortcut file (.url) to the document library.

B. Use "Link to a document" content type in SharePoint.

Details on how you to create a link to a document in a SharePoint library.

A. Create a shortcut in windows, then upload the shortcut file (.url) to the document library.

To do this, you need to remove .url file type from your blocked file types in your web application. This will bring some security risk, which is not recommended, and I won't show the step details here.

B. Use "Link to a document" content type in SharePoint.

  1. Enable "Content Type management" in your document library. EnableContentTypeDocument Figure: Enable Content Type management in library setting
  2. Add "Link to a Document" content type into the library. AddExistContentType Figure: Add from existing site content type SelectLinkToADocumentType Figure: Select "Link to a Document" content type
  3. Create a "Link to a document" instance CreateLinkToADocumentInstance Figure: select "File | New Document (dropdown) | Link to a document" InputLinkUrlAndName Figure: Input "Name" and "URL"
  4. Done

You should be able to see the link type document in your library: LinksTypeDocumentsWithShortcutIcon Figure: Link type documents with the lovely shortcut icon

William YinWilliam Yin
Adam CoganAdam Cogan

We open source. This page is on GitHub