You can use Google Docs™ to create and edit text documents, spreadsheets, or presentations for storage in the Docs and Media library. When you finish your Google Docs™ editing session, your changes are automatically saved in the Documents and Media Library. You can
The first time you create or edit a Documents and Media file via Google Docs™, you must authenticate with your Google account. This links Google Drive™ to your portal account, so you only need to do this once. You can unlink your account at any time by navigating to User Menu → Account Settings → General → Apps, and clicking Revoke next to Google Drive™.
Follow these steps to create a new Documents and Media file via Google Docs™:
Open the Menu (), click your site’s name, and navigate to Content & Data → Documents and Media.
Click the Add icon () and select the type of Google document to add to the Document Library.
- Google Docs™
- Google Slides™
- Google Sheets™
When you select one of these options, Liferay DXP creates a temporary Documents and Media file and links it to a new Google file. Your browser then redirects you to that Google file so you can create its content.
Note that some actions on the temporary Documents and Media file can affect its linked Google file. For more information, see multiple editing sessions.
Use the Google Docs™ editor to create your document’s content. All Google Docs™ features are available except for sharing.
Save or discard your changes by clicking one of these toolbar buttons in the Google Docs™ editor:
Save and Return to Liferay: Saves your document as a new file in the Documents and Media Library, deletes the Google file, and returns you to the portal. The saved file’s format depends on the type of Google document you selected in step two above:
- Google Docs™: Microsoft Word (
- Google Slides™: Microsoft PowerPoint (
- Google Sheets™: Microsoft Excel (
Discard Changes: Returns you to the portal without saving your file in the Documents and Media Library or Google Docs™.
Note that it’s also possible to close the Google Docs™ window without clicking either button. In this case, the editing session remains open even though the window that displayed it is closed. For more information, see the section below on multiple editing sessions.
- Google Docs™: Microsoft Word (
You can use Google Docs™ to edit the following types of Documents and Media files:
- Text files (
- Presentation files (
- Spreadsheet files (
- PDF files
Follow these steps to edit a Documents and Media file in Google Docs™:
Navigate to the file in the Documents and Media Library.
Click the file’s Actions icon () and select Edit in Google Docs. This automatically checks out the file, transfers its content to a new Google Docs™ file, and redirects you to that Google Docs™ file.
Edit the file in Google Docs™. The editing process is exactly the same as described above for creating files.
When you create or edit a Documents and Media file in Google Docs™, you can save or discard your changes by clicking Save and Return to Liferay or Discard Changes, respectively. If you instead close the window without clicking either, the editing session still exists. You can access it via the original file in Documents and Media. If the file didn’t exist before (e.g., you were creating a new file), it appears in Documents and Media as a temporary file.
When an editing session already exists for a Documents and Media file, the following actions are available via that file’s Actions icon ():
Edit in Google Docs: Resume editing the file in Google Docs™.
Check in: Saves the Google file (including any changes) to the Documents and Media file, then deletes the Google file. This is equivalent to clicking Save and Return to Liferay in a Google Docs™ editing window.
Cancel Checkout: Deletes the Google file, discarding any changes. This is equivalent to clicking Discard Changes in a Google Docs™ editing window.