]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Document listsubscribe plugin.
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Mon, 22 Feb 2016 21:28:05 +0000 (16:28 -0500)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Mon, 22 Feb 2016 21:28:05 +0000 (16:28 -0500)
doc/plugins/contrib/listsubscribe.mdwn [new file with mode: 0644]

diff --git a/doc/plugins/contrib/listsubscribe.mdwn b/doc/plugins/contrib/listsubscribe.mdwn
new file mode 100644 (file)
index 0000000..0b93cde
--- /dev/null
@@ -0,0 +1,25 @@
+[[!template id=plugin name=listsubscribe author="[[schmonz]]"]]
+[[!template id=gitbranch branch=schmonz/listsubscribe author="[[schmonz]]"]]
+[[!tag type/web]]
+
+This plugin provides the `listsubscribe` directive, which inserts a web
+form for your readers to subscribe to a mailing list. The directive
+takes a required `listname` parameter, which must refer to one of the
+lists named in the wiki setup file.
+
+## Example
+
+In `ikiwiki.setup`:
+
+    add_plugins:
+    - listsubscribe
+    
+    listsubscribe:
+      'my supercool mailing list': supercool-subscribe@neato.great
+
+(Where `supercool-subscribe@neato.great` is the subscription address
+provided by your mailing list manager.)
+
+In any wiki page:
+
+    [[!listsubscribe listname="my supercool mailing list"]]