custombuttons plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" yes

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

Last updated on
2011-03-27
Provides
Admin, Action
Repository
Source

Similar to codebutton2, codebutton_ext

Tagged with button, shortcut, toolbar

Description

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

  1. Plain blocks of text: This is usefull 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>

FIXME Due to the use of json_{decode|encode} this plugin works in PHP >= 5.2.0.

Note: Icon by Joseph North!

Download and Installation

Download and install the plugin using the Plugin Manager using the URL given above. 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.

Bugs

Please use Github's Bug/Reporting system!

  1. The toolbar icons is very large and using some template is not shown correctly — atronoushatronoush

    USA
    2011/06/18 08:46!

Requested features

  1. It is good to add the capabilities of snippets plugin! I mean the plugin capable to handle multi lines snippets — atronoushatronoush

    USA
    2011/06/18 08:46
plugin/custombuttons.txt · Last modified: 2011/12/24 21:02 by rikblok
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate