History: PluginWebDocViewer
Preview of version: 14
PluginWebDocViewer
New Wiki plugin introduced in Tiki12 to allow displaying many types of documents online, embedded in your Tiki pages.
Supported file types:
- Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
- Raw Image formats
- Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV, .ogg)
- Microsoft Word (.DOC and .DOCX)
- Microsoft Excel (.XLS and .XLSX)
- Microsoft PowerPoint (.PPT and .PPTX)
- Adobe Portable Document Format (.PDF)
- Tagged Image File Format (.TIFF)
- Scalable Vector Graphics (.SVG)
- PostScript (.EPS, .PS)
- TrueType (.TTF)
- XML Paper Specification (.XPS)
- Google Docs
- Google Sheets
- Google Slides
- Google Forms
- Google Drawings
See also the "Support File Types" at https://support.google.com/drive/answer/2423485
Overview
Parameters
FileId
Enter the FileId of a file in a Tiki File Gallery
URL
Enter a URL of a file from an external domain
Height
The height of the embed area
Width
The width of the embed area
Introduced in Tiki 12.
Go to the source code
Preferences required: wikiplugin_webdocviewer
Parameters | Accepted Values | Description | Default | Since |
---|---|---|---|---|
fileId |
digits | The FileId of a file in a File Gallery of the file you wish to embed in the viewer. | 12.0 | |
url |
url | The URL of the file you wish to embed in the viewer. If the file is stored in
File Galleries, please use the fileId parameter |
12.0 | |
height |
digits | Height in pixels | 350 | 12.0 |
width |
digits | Width in pixels | 425 | 12.0 |
Note : For a full list of supported file types please visit https://support.google.com/drive/answer/2423485?p=docs_viewer&rd=1
Example
To add a preview of a document in a wiki page, forum post, blog post, use the WEBDOCVIEWER plugin like this:
Copy to clipboard
{WEBDOCVIEWER(fileId=>1,width=>425,height=>350)}{WEBDOCVIEWER}
Copy to clipboard
{WEBDOCVIEWER(url=>http://www.ntia.doc.gov/legacy/reports/2010/OSTWG_Final_Report_060410.pdf, width=>425, height=>350)}{WEBDOCVIEWER}