Loading...
 
Skip to main content

History: PluginGoogleDoc

Preview of version: 24 (current)

Plugin Google Doc

This wiki plugin, introduced in Tiki3, allows you to include a document from the Google Docs service in a page.

 Note
The user may need to log in to Google before seeing the document.

Parameters

Display a Google document
Introduced in Tiki 3. Required parameters are in bold.
Go to the source code
Preferences required: wikiplugin_googledoc

Parameters Accepted Values Description Default Since
(body of plugin) Leave this empty.
key text Google doc key - for example: pXsHENf1bGGY92X1iEeJJI 3.0
type (blank)
document
slides
spreadsheet
forms
drive
Type of Google document 3.0
name text Name of iframe. Default is "Frame" + the key 3.0
url url The URL of the file on Google Drive 24.0
height digits Height in pixels or % 400 3.0
marginheight digits Margin height in pixels 3.0
marginwidth digits Margin width in pixels 3.0
width digits Width in pixels or % 800 3.0
align (blank)
top
middle
bottom
left
right
Position of frame on page 3.0
editLink (blank)
top
bottom
both
Choose whether to show an edit link and set its location 3.0
frameborder (blank)
1
0
Choose whether to show a border around the iframe 0 3.0
scrolling (blank)
yes
no
auto
Choose whether to add a scroll bar 3.0
size (blank)
small
medium
large
Size of frame. Use instead of width and height. The sizes will fit the Google presentations sizes exactly. 3.0

Google Key

The most important parameter is the Google key. One way to find it is, on your documents list, click-right and go to "Get Link". You will see an URL to share your document. This URL contains the Google document key and you need to copy it to the plugin.

IE (the key is in red colour): https://docs.google.com/forms/d/1fqq6Uq8fwhTV7mvt5iy_dkUE6MtLGJRCk37VKJQNzTI/edit?usp=sharing

Note that on the same modal dialog you will be able to see who has right to see the document.

Examples

Basic syntax

Copy to clipboard
{googledoc key="pXsHENf1bGGY92X1iEeJJI" type="spreadsheet" name="docFrame1" width="400" height="500" align="middle" frameborder="0" marginheight="5" marginwidth="5" scrolling="yes" editLink="both"}

In case you select drive the key is not required, but you must provide the Google Drive link of your file.
Note that type drive does not support documents, spreadsheets, forms, or slides, better to select a type that meets the requirements.

Copy to clipboard
{googledoc key="pXsHENf1bGGY92X1iEeJJI" type="drive" name="docFrame1" url="https://drive.google.com/file/d/1fqq6Uq8fwhTV7mvt5iy_dkUE6MtLGJRCk37VKJQNzTI/view" scrolling="yes"}

Screenshot

Image

Aliases

PluginGoogleDocs | Plugin Google Docs | Plugin Google Doc | GoogleDocs | Google Docs | Google Doc | GoogleDoc | Google Drive | GoogleDrive | Google Drives | GoogleDrives

History

Advanced
Information Version
ibrahim mussa 24
ibrahim mussa Replace type "sheet" with "spreadsheet" and Google drive alias 23
Bernard Sfez / Tiki Specialist 22
Bernard Sfez / Tiki Specialist Tested on Tiki23 added information to ease users life. 21
Yves Kipondo 20
lindon 19
KoenMiltenburg made the previous change a header 18
KoenMiltenburg The code does not work! 17
Xavier de Pedro 16
Scot Wilcoxon description 14
MatWho 13
lindon 12
matwho 11
matwho 10
matwho 9
matwho 8
matwho 7
matwho 6
matwho 5
matwho 3
matwho 2
MatWho 1