Compatible with DokuWiki
| Download | Current archive from github |
|---|
Use this address to install this plugin by using the plugin manager.
This plugin allows to send the raw page content (Wiki syntax) to a given mail address. You can add a button, which triggers mail sending, to your template:
diff --git a/lib/tpl/default/main.php b/lib/tpl/default/main.php
index 3e85c58..f6abc0c 100644
--- a/lib/tpl/default/main.php
+++ b/lib/tpl/default/main.php
@@ -57,6 +57,7 @@ if (!defined('DOKU_INC')) die();
<div class="bar-left" id="bar__topleft">
<?php tpl_button('edit')?>
<?php tpl_button('history')?>
+ <?php print html_btn('sendpagecontent', $ID, '', array('do' => 'sendpagecontent')) ?>
</div>
<div class="bar-right" id="bar__topright">
Unfortunately, the label which describes the button must be added manually to the localizations
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index 89a7c4d..3d9e80b 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -51,6 +51,7 @@ $lang['btn_revert'] = 'Restore'; $lang['btn_register'] = 'Register'; $lang['btn_apply'] = 'Apply'; $lang['btn_media'] = 'Media Manager'; +$lang['btn_sendpagecontent'] = 'Send Mail'; $lang['loggedinas'] = 'Logged in as'; $lang['user'] = 'Username';