DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:feedback

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:feedback [2017-08-18 09:06] andiplugin:feedback [2023-02-08 12:25] (current) – old revision restored (2022-02-09 21:39) saggi
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Simple plugin to ask users to provide feedback on wiki pages.+description: Simple plugin to ask users to provide feedback on wiki pages
 author     : Andreas Gohr  author     : Andreas Gohr 
 email      : dokuwiki@cosmocode.de  email      : dokuwiki@cosmocode.de 
 type       : action type       : action
-lastupdate : 2017-06-07+lastupdate : 2019-03-21
 compatible : Frusterick Manners compatible : Frusterick Manners
 depends    :  depends    : 
Line 21: Line 21:
 ---- ----
  
-[[http://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]+[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-After installing you need to add the plugin to your template using the following code:+===== Integration ===== 
 + 
 +==== By Syntax ==== 
 + 
 +You can add the Feedback Link to your sidebar using the following syntax: 
 + 
 +  {{FEEDBACK}} 
 + 
 +==== By changing the template ==== 
 + 
 +You can integrate the link directly into the template using the following code:
  
 <code php> <code php>
 <?php <?php
 +/** @var action_plugin_feedback $feedback */
 $feedback = plugin_load('action', 'feedback'); $feedback = plugin_load('action', 'feedback');
 if($feedback) $feedback->tpl(); if($feedback) $feedback->tpl();
Line 36: Line 47:
 </code> </code>
  
-===== Text Replacements =====+===== Adjusting the Mail ===== 
 + 
 +The mail you get when feedback is sent, is defined in the [[https://github.com/cosmocode/dokuwiki-plugin-feedback/blob/master/lang/en/mail.txt|mail.txt]] language file. You can create your own version of that file in ''conf/plugin_lang/feedback/<language>/mail.txt''
 + 
 +The followoing placeholders can be used in that file:
  
   * PAGE - the page on which the feedback was given   * PAGE - the page on which the feedback was given
   * FEEDBACK - the feedback provided   * FEEDBACK - the feedback provided
 +  * URL - the URL of the page where the feedback was given
   * DATE - current date   * DATE - current date
   * BROWSER - the browser used by the user giving feedback   * BROWSER - the browser used by the user giving feedback
plugin/feedback.1503040019.txt.gz · Last modified: 2017-08-18 09:06 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki