Creating and Editing Documents with Google Drive¶
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.
The first time you create or edit a Documents and Media file via Google Docs™, you must authenticate to your Google account. This links Google Drive™ to your portal account, so you only need to do this once.
To unlink your account,
Click on your profile → Account Settings.
On the General tab, click Apps.
Click Revoke next to Google Drive™.
Access to Google Drive™ has been unlinked.
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.
When you select one of these options, 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.
You can use Google Docs™ to edit the following types of Documents and Media files:
Text files (
Presentation files (
Spreadsheet files (
| Note: Google Docs™ doesn’t support older, non-XML-based Microsoft Office file types (
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.
Multiple Editing Sessions¶
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.