Embed Google Docs Viewer

December 16th, 2013

Embed Google Docs Viewer is a plugin for embedding one or more Google Docs Viewers (http://docs.google.com/viewer) to Joomla articles. By using Google Docs Viewer it’s possible to quickly view documents online without leaving browser. Adding the viewer to an article is very simple, just add the url of the document that you want to embed, and that’s it! It’s also possible to define the size of the document, mode of the reader (preview/edit), border layout and link to the full size document.

If you want to embed a document stored in Google Docs do the following.

1. Sign in to your Goole Docs account.
2. Open the document that you want to embed.
3. Click File -> Publish to the web
4. Copy the link from the “Document link” field.
5. Paste the link between the google_docs tags.

The above steps don’t work with forms. To embed a form do the following.

1. Sign in to your Goole Docs account.
2. Open the form that you want to embed.
3. Click Form -> Go to live form.
4. The form opens in a new tab/window.
5. Copy the URL from the browser’s address bar.
6. Paste the URL between the google_docs tags.

Base URL

In the admin panel it’s possible to define a base URL for the documents, which makes embedding the documents even easier as there’s no need to type in the full URL for each document.