DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:hiddenswitch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Both sides next revision
plugin:hiddenswitch [2012-11-04 17:02]
188.11.50.50 [Discussion]
plugin:hiddenswitch [2020-11-21 20:19] (current)
Klap-in Marked obsoleted as hidden plugin has this functionality since 2015
Line 6: Line 6:
 email      : guillaume.turri@gmail.com email      : guillaume.turri@gmail.com
 type       : Syntax type       : Syntax
-lastupdate : 2011-11-01 +lastupdate : 2014-07-27 
-compatible : Angua+compatible : Angua, Binky, ponder stibbons
 depends    : hidden depends    : hidden
 conflicts  conflicts 
 similar    : folded, outliner similar    : folded, outliner
-tags       : hide, collapsible+tags       : hide, collapsible, !obsolete
  
-downloadurl: http://github.com/gturri/hiddenswitch/zipball/master +downloadurl: https://github.com/gturri/hiddenswitch/zipball/master 
-bugtracker : http://github.com/gturri/hiddenswitch/issues +bugtracker : https://github.com/gturri/hiddenswitch/issues 
-sourcerepo : http://github.com/gturri/hiddenswitch/ +sourcerepo : https://github.com/gturri/hiddenswitch/ 
-donationurl: http://www.paypal.com+donationurl: 
 ---- ----
 +
 +**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! 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!
Line 23: Line 27:
 ===== Installation ===== ===== Installation =====
  
-Please use the plugin manager, using this URL: http://github.com/gturri/hiddenSwitch/zipball/master+Please use the plugin manager, using this URL: https://github.com/gturri/hiddenSwitch/zipball/master
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 47: Line 51:
  
 ===== Discussion ===== ===== Discussion =====
- 
-There is a couple of bugs here: 
-  * the first one is in the jQuery implementation of the hiddenSwitch plugin inside the hidden plugin (downloaded today 2012-11-04): in the row 65 of file script.js you wrote <code php>return jQuery(elem.parentNode).children('div.hiddenBody').style.display === "none";</code> instead of <code php> return jQuery(elem.parentNode).children('div.hiddenBody')[0].style.display === "none";</code> 
-  * the plugin "eats" all the input to the last '>' in the page. To fix it you need to replace the row 21 in syntax.php file with <code php>    $this->Lexer->addSpecialPattern('<hiddenSwitch.*?>', $mode,'plugin_hiddenSwitch');</code> Two replacements here: addSpecialPattern instead of addEntryPattern and the question mark in the regexp (reluctant quantifier). 
- 
 My improvement proposals: My improvement proposals:
   * merge hiddenswitch inside hidden plugin, why 2 plugins?   * merge hiddenswitch inside hidden plugin, why 2 plugins?
Line 58: Line 57:
   * 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   * 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 -- Fabrizio Bisi+Congratulations for the plugin, it's nice -- [[user>bifazio|Fabrizio]]
plugin/hiddenswitch.1352044932.txt.gz · Last modified: 2012-11-04 17:02 by 188.11.50.50