Enabling Document Creation and Editing with Google Drive¶
Liferay DXP provides integration with Google Drive so you can create and edit Google Docs, Sheets, and Slides via the Documents and Media application. When adding or editing one of these document types, you’re redirected to Google’s external editor where you can compose your file.
This integration can be enabled globally (i.e., for all portal instances in a DXP installation), or for individual instances. Configurations at an instance level override global configurations.
Enabling Liferay’s Google Drive integration requires an active Google Project with the Google Drive API enabled and OAuth 2 properly configured. To set up OAuth 2, configure an OAuth consent screen, generate OAuth 2 credentials, and add the Liferay request URIs to the list of authorized URIs for the OAuth Client.
When generating OAuth 2 credentials, ensure you’ve selected Web application for the application type. Once generated, you’ll need the credential’s client ID and client secret for configuring Documents and Media.
Please consult Google Cloud documentation if needed:
Once your Google Project is ready, you can configure Liferay’s Documents and Media application.
Configuring Documents and Media¶
Follow these steps to enable Liferay’s integration with Google Drive.
Open the Global Menu (), click on the Control Panel tab, and go to System Settings → Documents and Media.
Click on Google Drive under Virtual Instance Scope.
Enter the Google Project’s OAuth 2 client ID and client secret.
Click on Save.
Once enabled, authorized users can create Google Docs, Slides, and Sheets via Documents and Media.
To disable this feature, click on the Actions button for Google Drive, and select Reset Default Values.