aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-09-09 07:13:21 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-09-09 07:13:21 +0000
commitd92142d09eaec9018c0cdc96f9ad3bd4a0c876a7 (patch)
treebab53d1953f98191cdc85c6e4116d22ec3606d66 /doc/plugins
parentaa2b3b8f637d0f3abe2ebf3845a22781ffd83c72 (diff)
downloadikiwiki-d92142d09eaec9018c0cdc96f9ad3bd4a0c876a7.tar
ikiwiki-d92142d09eaec9018c0cdc96f9ad3bd4a0c876a7.tar.gz
add
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/googlecalendar.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/plugins/googlecalendar.mdwn b/doc/plugins/googlecalendar.mdwn
new file mode 100644
index 000000000..59a4e6ea3
--- /dev/null
+++ b/doc/plugins/googlecalendar.mdwn
@@ -0,0 +1,18 @@
+[[template id=plugin name=linkmap included=1 author="Joey Hess"]]
+[[tag type/special-purpose]]
+
+This plugin allows embedding a google calendar iframe in the wiki.
+Normally, if the [[htmlscrubber]] is enabled, such iframes are scrubbed out
+of the wiki content since they're not very safe if created by malicious
+users. But some iframes are legitimate, and safe, if you trust the embedded
+content. This plugin is an example of how to deal with this in ikiwiki.
+
+Example use:
+
+ \[[googlecalendar html="""
+ <iframe src="http://www.google.com/calendar/embed?src=adkrdken8mupngh13jshlbenoc%40group.calendar.google.com&title=OSEL%20Calendar&chrome=NAVIGATION&bgcolor=%2371d873&height=588" style=" border-width:0 " width="480" frameborder="0" height="588"></iframe>
+ """]]
+
+The iframe should be the one provided by google. Note that it's used in a
+way that avoids cross-site scripting attacks, assuming you trust google's
+content.