Table of Contents
CustomButtons Plugin
Compatible with DokuWiki
- 2024-02-06 "Kaos" yes
- 2023-04-04 "Jack Jackrum" yes
- 2022-07-31 "Igor" yes
- 2020-07-29 "Hogfather" yes
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:
- Plain blocks of text: This is useful when you want to shortcut URLs, email addresses and generally complicated wiki tags that you use often.
- 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 custom buttons, log in as admin and click the “Admin Button.”
Under the “Additional Plugins” section, click “Custom Buttons Setup.”
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.