Table of Contents

sendpagecontent Plugin

Compatible with DokuWiki

Rincewind

plugin Send the raw page content to a given mail address

Last updated on
2016-02-03
Provides
Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with email, transfer

Installation

Download and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Description

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';

Configuration and Settings

FIXME

Development

Change Log

ToDo/Wish List

Discussion