DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:custombuttons

CustomButtons Plugin

Compatible with DokuWiki

  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown

plugin A plugin for adding custom buttons to the toolbar, to shortcut commonly used code blocks

Last updated on
2021-02-28
Provides
Admin, Action
Repository
Source

Description

A plugin for adding custom buttons to the toolbar, to shortcut commonly used code blocks. The latest version has a user-friendly back-end that lets you add two types of shortcut buttons:

  1. Plain blocks of text: This is useful when you want to shortcut URLs, email addresses and generally complicated wiki tags that you use often.
  2. Wiki Format blocks: This should be used when the tags you want to shortcut have an opening and closing part and the user should add something in the middle. ex:
    <file bash bash.sh></file>

Note: Icon by Joseph North!

Download and Installation

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

Examples

To add some button you should login as admin and click to the “Admin Button”.

Shortcut button for a commonly used URL

Shortcut button for adding a bash script

Deleting

Just click at a radio button and then click “Delete”.

Using the buttons

After you have successfully inserted some buttons you should be able to see them at the edit toolbar, as shown below.

Multiline Codes

If you want to have a shortcut for a common used multiline template (eg. a table) you can use “\n” in the code field to denote the line change.

Example:

Label: 3x3 Table
Code: ^ header1  ^ header2  ^ header3  ^\n|  valueA1  |  valueA2  |  valueA3  |\n|  valueB1  |  valueB2  |  valueB3  |

Bugs and Feature Requests

Use GitHub Issues to reports bugs and request features.

plugin/custombuttons.txt · Last modified: 2022-11-15 12:46 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