DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:links4pages

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
plugin:links4pages [2018-07-27 19:35] – created albinouplugin:links4pages [2018-08-14 14:43] – [links4pages Plugin] Add tags albinou
Line 6: Line 6:
 email      : albin-dokuwiki@kauff.org  email      : albin-dokuwiki@kauff.org 
 type       : action type       : action
-lastupdate : 2018-07-27+lastupdate : 2018-08-09
 compatible : Greebo compatible : Greebo
-depends    : addnewpage+depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : +tags       : button icons links menu navigation
  
 downloadurl: https://github.com/albinou/dokuwiki-plugin-links4pages/zipball/master downloadurl: https://github.com/albinou/dokuwiki-plugin-links4pages/zipball/master
Line 22: Line 22:
  
 ===== Installation ===== ===== Installation =====
- 
-:!: **External requirements:** This plugin requires the following additional components that must be installed separately:  
-  * [[addnewpage]] (needed to create a page helping users to create new pages) 
  
 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. 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.
  
-===== Usage =====+===== Example =====
  
 Adding new pages in DokuWiki might not be not very convenient for your users. The [[addnewpage]] plugin helps but it would be needed to add the code ''%%{{NEWPAGE}}%%'' to every page to make it accessible easily. Adding new pages in DokuWiki might not be not very convenient for your users. The [[addnewpage]] plugin helps but it would be needed to add the code ''%%{{NEWPAGE}}%%'' to every page to make it accessible easily.
  
-So this plugin allows you to add a button on the //PageMenu// (the one on the right on the default template) that opens a custom page offering the opportunity to create a new page. See the screenshots for the example.+So this plugin allows to add a "Create new page" button on the //PageMenu// (the one on the right on the default template):
  
-This plugin has been developed so that it is easy to add support for other links.+{{https://github.com/albinou/dokuwiki-plugin-links4pages/raw/screenshots/doc/addnewpage-button.png?recache}} 
 + 
 +A click on this button opens a custom page offering the opportunity to create a new page ([[addnewpage]] is needed to create such a page): 
 + 
 +{{https://github.com/albinou/dokuwiki-plugin-links4pages/raw/screenshots/doc/addnewpage-page.png?recache}} 
 + 
 +This plugin can be used to create these types of links to any Page ID.
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
Line 40: Line 43:
 The following items can be configured: The following items can be configured:
  
-  * Link type +  * Page ID link (ex. "wiki:new-page"
-  * Page ID (the page the button will open+  * Link label (ex. "Create new page") 
-  * Icon position on the PageMenu+  * SVG icon (Media ID of an SVG file uploaded via the Media Manager. ex. wiki:file-plus.svg
 +  * Position of the link (ex. "1"
 + 
 +**Dokuwiki advice (copied from [[devel:menus#icon|here]]):** To match the style of other icons, it is recommended to either pick an icon from the huge, free selection at https://materialdesignicons.com/ or adhere to the [[https://material.io/guidelines/style/icons.html|Material Design Guidelines]] when designing your own icon.
  
 ===== Development ===== ===== Development =====
Line 48: Line 54:
 === Change Log === === Change Log ===
  
 +  * **2018-08-09**
 +    * Make the plugin more generic
 +    * Take the SVG icons from the medias instead of the image directory
   * **2018-07-27**   * **2018-07-27**
     * Initial release     * Initial release
Line 54: Line 63:
  
 === ToDo/Wish List === === ToDo/Wish List ===
- 
-  * Add new link types (in addition to //new_page//) 
  
 ===== FAQ ===== ===== FAQ =====
plugin/links4pages.txt · Last modified: 2020-02-23 19:52 by Aleksandr

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