Follow these steps to add your SharePoint Library to Documents and Media:
-
Add the Documents and Media application to a page, if you haven’t already.
-
Inside the Documents and Media application, click the Add icon () and select Repository. The New Repository screen appears.
-
Select the repository type for the SharePoint OAuth2 configuration you created. For example, if your configuration is named
Foo
, the repository type is listed asSharePoint (Foo)
. -
Specify values for these fields:
-
Site Absolute URL: Resolves relative URLs. For SharePoint Online, the value follows this pattern:
https://[your-site-name].sharepoint.com
. -
Library Path: A relative path from the Site Absolute URL that points to the SharePoint Document Library you want to mount in Documents and Media (an example path could be
Shared Documents
).
-
-
Click Save.
The Documents and Media Library now lists your SharePoint repository.
Sweet! Now that you’ve added a SharePoint Repository to Documents and Media, you can access and modify SharePoint Library files in your Liferay DXP instance.