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-21 02:54] – 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, markup it with ''< | + | |
- | < | + | |
- | You do not need to remove ''< | + | To show the document in the embedded viewer, change |
- | + | <code> | |
- | + | ||
- | A most simple example: | + | |
- | | + | |
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' | ||
==== Limitation ==== | ==== Limitation ==== | ||
- | * Unfortunately, the Google Docs Viewer service seems not accept ugly url like: \\ //< | + | * Unfortunatly, the Google Docs Viewer service seems not accept ugly url \\ ( for example: |
- | * You need to make effective | + | * 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) | + | * This means you may embed a document published at different web site. The source url (reference) |
+ | * you can use " | ||
* **size** : Size of embedded viewer. | * **size** : Size of embedded viewer. | ||
Line 71: | 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 after " | + | * Document title specified after " |
* **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 ===== | ||
Line 83: | Line 96: | ||
=== CSS === | === CSS === | ||
- | The class //tpl_gview// is avilable | + | The class //obj_container_gview// is available |
==== Language file ==== | ==== Language file ==== | ||
Line 94: | Line 108: | ||
I have just started github. | I have just started github. | ||
- | {{rss> | + | {{rss> |
=== ToDo === | === ToDo === | ||
- | | + | |
+ | | ||
+ | * also, support Skydrive, even plugin name is not appropriate... | ||
+ | * <del>consider [[: | ||
+ | * 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 ==== | ==== Show PDF documents stored in DW media ==== | ||
Thanks for this plugin!\\ | Thanks for this plugin!\\ | ||
It would be great, to view pdf documents stored in DW media directory. < | 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.1363830841.txt.gz · Last modified: 2013-03-21 02:54 by s.sahara