DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:npd

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:npd [2014-10-16 23:08] – [Configuration and Settings] 79.247.101.65plugin:npd [2022-07-29 23:22] (current) Klap-in
Line 6: Line 6:
 email      : cstuder@existenz.ch  email      : cstuder@existenz.ch 
 type       : action type       : action
-lastupdate : 2014-06-16 +lastupdate : 2015-11-05 
-compatible : weatherwax, binky, "ponder stibbons"+compatible : weatherwax, binky, ponder stibbons
 depends    :  depends    : 
 conflicts  conflicts 
Line 23: Line 23:
 ===== 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.
  
 ==== Add Button to Template ==== ==== Add Button to Template ====
Line 63: Line 63:
 Note: Configuration settings of plugins can be controlled by the [[plugin:config|Configuration Manager plugin]]. Note: Configuration settings of plugins can be controlled by the [[plugin:config|Configuration Manager plugin]].
 ==== Plugin NTP Link Type ==== ==== Plugin NTP Link Type ====
-If the config setting ''link_type'' is set to ''link'', this will generate an HTML link element. 
  
-Otherwise, the setting ''button'' (default) will create an HTML form element with a button, approximately like this:+This setting controls the appearance of the page creation action:
  
-<code html>+  * The value ''link'' will cause it to appear as an HTML link element, similar to this: \\ <html> <a href="...">Create New Page</a> </html> 
 + 
 +  * The value ''button'' (default) will cause it to appear as an HTML form element with a button, approximately like this: \\ <html>
 <form> <form>
-  <div class="no"> +<div class="no"> 
-    <input class="button" />; +<input class="button"/> 
-  </div>+</div>
 </form> </form>
-</code>+</html>
  
-Choose this according to your template.+Choose this setting according to your template.
  
 ===== Development ===== ===== Development =====
Line 82: Line 83:
  
 === Change Log === === Change Log ===
 +  * **2015-11-05**
 +    * Fixes an issue with adding a page below two levels, by thylacine222
 +    * Updates spanish localization by Patricio Parraguez
 +    * Updates korean localization by Myeongjin
 +    * Adds bulgarian localization by Neli Dimitrova
 +
   * **2014-06-16**   * **2014-06-16**
     * Adds japanese localization by Hideaki SAWADA     * Adds japanese localization by Hideaki SAWADA
Line 156: Line 163:
  
 Cheers Cheers
 +
 +==== Adjusting the action appearance to the toolbar of the dokuwiki template ====
 +
 +The ''dokuwiki'' template of the current DokuWiki version (Hrun) has a nice toolbar to the right of each page, with icons that pop out a menu when hovering over them. While the ''link'' appearance of this plugin matches that better than the ''button'' appearance, it still looks inconsistent.
 +
 +Changing the ''link'' case in the file ''dokuwiki/lib/plugins/npd/helper.php'' as follows lets the "Create New Page" action have the same appearance as the actions in that toolbar:
 +
 +<code php>
 +  case 'link':
 +    $ret .= '<li><a rel="nofollow" href="'.$url.'" style="display:none;" id="npd__create_button" class="action create" title="'.$label.'"><span>'.$label.'</span></a></li>';
 +    break;
 +</code>
 +
 +Using ''class=″action create″'' selects the page creation icon from the pagetools icons of the ''dokuwiki'' template, it looks like the pen of the edit icon, with a plus-sign in the lower right corner.
 +
 +Happy adjusting!
 +
  
  
  
plugin/npd.1413493680.txt.gz · Last modified: 2014-10-16 23:08 by 79.247.101.65

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