DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:hiddenswitch

hiddenSwitch Plugin

Compatible with DokuWiki

Angua, Binky, ponder stibbons

plugin Made to work with the [[hidden]] plugin: let add buttons to (un)display several blocks

Last updated on
2014-07-27
Provides
Syntax
Repository
Source
Requires
hidden

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to folded, outliner

Tagged with collapsible, hide

Deprecated: this plugin has been merged with the hidden plugin. In practice it means that if you have a hidden plugin v >= 2015-08-12, then you can delete this hiddenSwitch plugin, and all your pages will still work the same.

If you use the hidden plugin, you may find it tedious to click on every hidden block to display them, for example before printing. Then this plugin is made for you!

Installation

Please use the plugin manager, using this URL: https://github.com/gturri/hiddenSwitch/zipball/master

Examples/Usage

To create such a switch, you may use :

<hiddenSwitch>

or

<hiddenSwitch Here comes my custom text>

Therefore, to see it in action, you could create such a page:

<hidden>My first hidden block</hidden>
<hidden>My second hidden block</hidden>

<hiddenSwitch>

Please make sure you have a recent (2011-12-03 or higher) version of the hidden plugin!

Change Log

Discussion

My improvement proposals:

  • merge hiddenswitch inside hidden plugin, why 2 plugins?
  • central default configuration: for example for texts
  • default images + and -
  • the hiddenswitch button in the hidden bar? The bar should have 2 buttons: the left-aligned display/hide button (as now) and the right-aligned display all/hide all button. Only an idea but I think is a good place where to put the hiddenSwitch button

Congratulations for the plugin, it's nice – Fabriziobifazio

plugin/hiddenswitch.txt · Last modified: 2016-01-06 22:13 by Aleksandr