Google Drive Docs Viewer

Categories

Component ID

2777339

Component name

Google Drive Docs Viewer

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

500

Component created

Component changed

Component body


Overview


The Google Drive Docs Viewer is a module which
adds a formatter to core's Text field. The formatter
uses Google's embeddable Google Drive Docs viewer to render
Adobe Acrobat pdf files, and Microsoft Word, Excel, and
Powerpoint files (i.e. files suffixed with .pdf, .doc,
.docx, .xls, .xlsx, .ppt, or .pptx).

After adding a Text field to a Drupal content type,
the Google Drive Docs Viewer formatter may be selected
for use on the conntent type's "Manage Display" tab.


Installation


Drupal 7

1. Unpack the googledrive_doc_viewer folder and contents in the appropriate modules
directory of your Drupal installation. This is probably
sites/all/modules/
2. Enable the googledrive_doc_viewer module in the administration tools. It appears
in the Modules list as "Google Drive Docs Viewer."


Drupal 8

1. Unpack the googledrive_doc_viewer folder and contents in the appropriate modules
directory of your Drupal installation. This is probably
sites/modules/
2. Enable the googledrive_doc_viewer module in the administration tools. It appears
in the Modules list as "Google Drive Docs Viewer". Or we can use Drush or Drupal Console or Composer to install it.

Usage

- Create new field in your content type with type is Text
- Add file docs to your google drive.
- Get file id (0B4qAsjeO6V_8Y09hbWlkS2FKN0k) or get file share url
(https://drive.google.com/open?id=0B4qAsjeO6V_8Y09hbWlkS2FKN0k) then add to
the text field.
- In display management, choose Google Drive Doc Viewer