plugin:gview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:gview [2013-03-19 14:54] – [Examples/Usage] s.sahara | plugin:gview [2018-05-28 22:44] (current) – [Installation] Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
email : sahara.satoshi@gmail.com | email : sahara.satoshi@gmail.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2013-03-18 | + | lastupdate : 2014-11-16 |
- | compatible : | + | compatible : Adora Belle, Weatherwax, Binky, 2014-05-05 " |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : google, embed | + | tags : google, embed, html5 |
downloadurl: | downloadurl: | ||
Line 24: | Line 24: | ||
- | Install | + | Search and install |
+ | |||
+ | ==== Prerequisite to embed document stored in media directory ==== | ||
+ | |||
+ | If your have set [[config: | ||
+ | |||
+ | **Otherwise**, | ||
+ | * make relevant entry in httpd.conf for apache | ||
+ | * make virtual directory using IIS admin panel | ||
+ | * make symbolic link -- ln -s / | ||
+ | * make Junction in NTFS for Windows 2003S -- linkd -d _media | ||
+ | * Windows 2008S supports symbolic link | ||
Line 33: | Line 44: | ||
Let's suppose you have a link (with small fileicon) to given online document in your page source: | Let's suppose you have a link (with small fileicon) to given online document in your page source: | ||
- | < | + | < |
- | To show the document in the embedded viewer, | + | To show the document in the embedded viewer, |
- | < | + | < |
- | + | ||
- | You do not need to remove ''< | + | |
- | + | ||
- | + | ||
- | A most simple example: | + | |
- | {{gview> | + | |
Some more complex example: | Some more complex example: | ||
- | {{gview> | + | {{gview |
- | {{gview> | + | {{gview |
- | {{gview> | + | {{gview |
==== Note ==== | ==== Note ==== | ||
- | * The document to view must be " | + | * The document to view must be " |
* The DW page must be reachable from the internet (because Google' | * The DW page must be reachable from the internet (because Google' | ||
- | * Uploaded file through mediamanager may not shown in the embedded viewer. | ||
- | |||
+ | ==== Limitation ==== | ||
+ | * Unfortunatly, | ||
+ | * Therefore, you may need to extra setup explained in [[# | ||
===== Syntax ===== | ===== Syntax ===== | ||
< | < | ||
- | {{gview> url [size] [noembedded] [noreference] }} | + | {{gview [size] [noembed] [noreference] |
</ | </ | ||
- | * **url** : Full URL of the online document to view, must starts with "< | + | * **id** : DW media " |
+ | * This means you may embed a document published at different web site. The source url (reference) acknowleged above the viewer frame. | ||
+ | * you can use " | ||
* **size** : Size of embedded viewer. | * **size** : Size of embedded viewer. | ||
Line 69: | Line 77: | ||
* When one value is given it is assumed to be the height. | * When one value is given it is assumed to be the height. | ||
- | * **noembedded** (or **noembed**) | + | * **noembed** (or **noembedded**) |
* Indicate to show only hyperlink to the viewer, instead of embedded viewer. | * Indicate to show only hyperlink to the viewer, instead of embedded viewer. | ||
- | * Document title specified in ''< | + | * Document title specified |
* **noreference** | * **noreference** | ||
* Suppress a reference line just above embedded viewer frame. The reference is a hyperlink (url) to the online document shown in the viewer. | * Suppress a reference line just above embedded viewer frame. The reference is a hyperlink (url) to the online document shown in the viewer. | ||
+ | |||
+ | ==== trick syntax ==== | ||
+ | There is another **experimental** trick syntax available. The markup key is " | ||
+ | |||
+ | {{obj: | ||
+ | |||
+ | which will embed media resource in html using HTML5 object tag. If you do not like to use google service, please try this usage. The ''< | ||
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
There are no configuration options for this plugin. | There are no configuration options for this plugin. | ||
- | //[also CSS style tips]// ... comming later | + | === CSS === |
+ | The class //obj_container_gview// is available for selector of html element. Border settings for embedded viewer found in style.css. | ||
==== Language file ==== | ==== Language file ==== | ||
Line 91: | Line 108: | ||
I have just started github. | I have just started github. | ||
- | {{rss> | + | {{rss> |
=== ToDo === | === ToDo === | ||
- | //[developers roadmap]// ... will be supplemented later. | + | |
+ | * Support embedding Google document, sheet, presentation and drawings on Google Drive. | ||
+ | * also, support Skydrive, even plugin name is not appropriate... | ||
+ | * < | ||
+ | * change syntax to ''< | ||
===== FAQ ===== | ===== FAQ ===== | ||
// | // | ||
- | |||
===== Discussion ===== | ===== Discussion ===== | ||
+ | Great plugin! It would be good to be able to support the likes of the BOX viewer (HTML5). As it stands the correct height can be adjusted, but the width stays locked to 100%, even when changed to something else, i.e: | ||
+ | | ||
+ | {{obj: | ||
+ | The viewer works correctly though, it is just the width adjustment. | ||
+ | ==== Show PDF documents stored in DW media ==== | ||
+ | Thanks for this plugin!\\ | ||
+ | It would be great, to view pdf documents stored in DW media directory. < | ||
+ | > Thanks for your comment. It was my original objectives of this plugin. New release 2013-03-22 supports DW media docs with some prerequisite. I have tested CentOS6-Apache 2-Adora Belle and Win2003S-IIS6-Weatherwax RC1. --- [[user> | ||
- | + | I actually have my DW site protected by **.htaccess**, | |
+ | If I rename **.htaccess** everything works fine.\\ | ||
+ | Do you have some hints how to modify **.htaccess** for using with gview? This would be great. | ||
+ | I tried a lot of hints from the web, but nothing worked. e.g.: | ||
+ | < | ||
+ | RewriteCond %{HTTP_REFERER} !^http(s)?:// | ||
+ | RewriteCond %{HTTP_REFERER} !^http(s)?:// | ||
+ | RewriteRule \.(pdf)$ - [NC, | ||
+ | Working under debian linux with '' |
plugin/gview.1363701249.txt.gz · Last modified: 2013-03-19 14:54 by s.sahara