plugin:sendpagecontent
Table of Contents
sendpagecontent Plugin
Compatible with DokuWiki
Rincewind
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
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
Development
Change Log
- Merge pull request #4 from splitbrain-forks/php7-signature (2016-03-05 12:17)
- Adjust method signatures to match parent (2016-02-03 12:44)
- Update plugin.info.txt (2011-11-23 09:44)
- Name fixes (2011-11-06 18:50)
- Initial commit (2011-11-06 18:43)
ToDo/Wish List
Discussion
plugin/sendpagecontent.txt · Last modified: 2020-02-23 15:04 by Aleksandr