Tools plugin

Compatible with DokuWiki

2009-12-25c "Lemming"

plugin Insert toolbar with tools on pages

Last updated on
2010-04-02
Provides
Syntax, Action

Tagged with export, odt, pdf, tools

This plugin can shows a toolbar with more tools, without need to change your template:

  • Printable version (where available)
  • Export to OpenOffice (ODT plugin required)
  • Export to PDF (Dw2pdf plugin required)
  • Add/Remove selection for export to PDF (BookCreator plugin required)

Syntax

Tools support simple syntax to force enable or disable the toolbar on single page.

~~TOOLS:off|top|bottom|both~~

Configuration

Plugin allows to configure the following:

  1. list of available tools
  2. list of pages/namespaces, where plugin should be disabled
  3. define toolbar position
  4. define type of tools to show (icon, text, both)

All these options are available at the Configuration Manager.

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.

Note: If you do install manually the directory must be named tools. You may need to reset DokuWiki's cache to see the toolbar.

Version history

  • 2010-30-03 (current)
  • 2010-30-03
    • First public release.

Discussion

There's always room for improvement. If you're able to add any contributions to make this plugin better, please let me know or discuss your thoughts right here (please use ===== Level 3 Headlines ===== to open a new “thread”/issue and ---- (five dashes, horizontal rule) to structure it when needed).

Command unknown: tellafriend

The email button does not seem to work for me, i'm using the new monobook version and the latest dokuwiki (25/12), perhaps I miss a plugin or something??

Sorry, tellafriend is a beta plugin that I don't release yet. I think to publish it, in the next days
mluigi 2010/04/08 17:04
Allright, looking forward to it :-)
Thanks for the quick reply!
Theo 2010/04/09 08:46

Printable version dont' work

A very useful plugin, well done! However, I can't seem to get printing to work, no error message though. PDF works fine. — hivos 2010/04/08 17:47

The printable version command is available only on some template (e.g. see moonobook template)
mluigi 2010/04/08 19:02

Support for the BookCreator plugin

2010-30-03 (current): Add support for BookCreator plugin.

Sorry, but for me this feature isn't working. Is it really implemented? — nlightsArne
nlights

2010/10/02 00:26

German language

I will insert this language in the next release, but at this moment, create a folder called de into tools/lang and save this files in (thanks to Tobias) :

lang.php
<?php
 
$lang["tools"]       = "Tools:";
 
$lang["tools_print"] = "Druckversion";
$lang["tools_odt"]   = "als OpenOffice-Datei speichern";
$lang["tools_pdf"]   = "als PDF-Datei speichern";
$lang["tools_email"] = "per E-Mail versenden";
setting.php
<?php
 
$lang["show_tools"]      = "Position";
$lang["show_tools_o_0"]  = "versteckt";
$lang["show_tools_o_1"]  = "Seitenende";
$lang["show_tools_o_2"]  = "Seitenanfang";
$lang["show_tools_o_3"]  = "Seitenanfang und -ende";
 
$lang["show_link"]      = "Tools anzeigen";
$lang["show_link_o_0"]  = "Icons";
$lang["show_link_o_1"]  = "Text";
$lang["show_link_o_2"]  = "Icons und text";
 
$lang["show_header"]         = "Pluginkopfzeile anzeigen";
$lang["tools"]           = "folgende Tools einschalten";
$lang["skip_ids"]            = "Tools bei folgenden IDs nicht anzeigen";

Added print.css and Dutch language

To avoid having the toolbar on printed pages I added the following print.css

print.css
.dokuwiki ul.tools { display: none }

And the lang.php

lang.php
<?php
/**
 * Dutch language file
 */
$lang['tools']       = 'Tools:';
 
$lang['tools_print'] = 'Printbare versie';
$lang['tools_odt']   = 'Exporteren naar OpenOffice';
$lang['tools_pdf']   = 'Exporteren als PDF';
$lang['tools_email'] = 'Verstuur per e-mail';
 
//Setup VIM: ex: et ts=2 enc=utf-8 :

And the settings.php:

settings.php
<?php
/**
 * Dutch language file
 *
 */
 
// for the configuration manager
$lang['show_tools']      = 'Positie';
$lang['show_tools_o_0']  = 'Verborgen';
$lang['show_tools_o_1']  = 'Onder aan de pagina';
$lang['show_tools_o_2']  = 'Boven aan de pagina';
$lang['show_tools_o_3']  = 'Beide';
 
$lang['show_link']      = 'Toon tools middels';
$lang['show_link_o_0']  = 'Iconen';
$lang['show_link_o_1']  = 'Tekst';
$lang['show_link_o_2']  = 'Iconen en tekst';
 
$lang['show_header']    = 'Toon plugin koptekst';
$lang['tools']          = 'Gebruik de tools voor';
$lang['skip_ids']       = 'Laat geen tools zien op de volgende pagina\'s';
 
//Setup VIM: ex: et ts=2 enc=utf-8 :

Theo 2010/04/09 11:41

plugin/tools.txt · Last modified: 2011/05/07 16:27 by mluigi
 
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