DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:inline_folding

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
plugin:inline_folding [2011-02-11 17:02] – added plugin formular lupo49plugin:inline_folding [2018-06-04 22:40] (current) – [Description] Klap-in
Line 1: Line 1:
 ====== Inline Folding Plugin ====== ====== Inline Folding Plugin ======
- 
 ---- plugin ---- ---- plugin ----
 description: Enables folded text sections description: Enables folded text sections
-author     : Fabian van-de-l_Isle+author     : ta Lajzar
 email      : webmaster@lajzar.co.uk email      : webmaster@lajzar.co.uk
 type       : syntax type       : syntax
Line 10: Line 9:
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : inline_folding2, folded, hidden 
-tags       : folding, hidden+tags       : collapsible
 downloadurl:  downloadurl: 
 bugtracker :  bugtracker : 
 sourcerepo :  sourcerepo : 
 ---- ----
- 
 ===== Description ===== ===== Description =====
  
-This is my first attempt at doing anything on this scale in PHP, and it is, perhaps, obviously, largely a cut and paste job that owes heavily to earlier hacks for inline folding text in DokuWiki. With this [[plugins|plugin]] the [[:syntax]] of [[:DokuWiki]] is extended to allow inline folding sections. The syntax to use this plugin is...+This is my first attempt at doing anything on this scale in PHP, and it is, perhaps, obviously, largely a cut and paste job that owes heavily to earlier hacks for inline folding text in DokuWiki. With this plugin the [[:wiki:syntax]] of [[:DokuWiki]] is extended to allow inline folding sections. The syntax to use this plugin is...
  
   ++ Folded text ++   ++ Folded text ++
  
-You can see it in action [[http://www.lajzar.co.uk/dokuwiki/doku.php?id=elite:barnards_star|here]]. (Not. Need a new demo.)+You can see it in action [[http://www.lajzar.co.uk/dokuwiki/doku.php?id=elite:barnards_star|here]].FIXME
  
  
 :!: I have re-named this script to "creased", and changed the hook to activate the [[inline_folding2|alternate version]] of this plugin to "++++". It is now possible to have both plugins installed at the same time. Why do this? The "creased" plugin is good for folding text that is inside a list, which the "folded" plugin cannot do. however, the "folded" plugin can contain an [[include|included]] file, which the "creased" one cannot do. By making that small change to both plugins, you can now run both and enjoy the best of both worlds. :!: I have re-named this script to "creased", and changed the hook to activate the [[inline_folding2|alternate version]] of this plugin to "++++". It is now possible to have both plugins installed at the same time. Why do this? The "creased" plugin is good for folding text that is inside a list, which the "folded" plugin cannot do. however, the "folded" plugin can contain an [[include|included]] file, which the "creased" one cannot do. By making that small change to both plugins, you can now run both and enjoy the best of both worlds.
-Change the return value of getType from 'container' to 'formatting' in the [[inline_folding2|alternate version]] and it will fold text inside a list.  If you revise this version to remove the constructor function and add use a getAllowedTypes() method instead, then this version will be able to fold an [[include|included]] file.+\\ 
 +Change the return value of getType from 'container' to 'formatting' in the [[inline_folding2|alternate version]] and it will fold text inside a list.  If you revise this version to remove the constructor function and add use a getAllowedTypes() method instead, then this version will be able to fold an [[include|included]] file.
  
 ===== Plugin ===== ===== Plugin =====
Line 41: Line 40:
 ==== CSS ==== ==== CSS ====
  
-This goes in ./lib/tpl/default.css unless of course you have changed your stylesheet templates configuration.+This goes in <del>./lib/tpl/default.css</del> unless of course you have changed your stylesheet templates configuration.
  
 <code css> <code css>
Line 69: Line 68:
  * For Folded Text Plugin  * For Folded Text Plugin
  *  *
- * @author Fabian van-de-l_Isle <webmaster [at] lajzar [dot] co [dot] uk>+ * @author ta' Lajzar <webmaster [at] lajzar [dot] co [dot] uk>
  */  */
 function fold( folder, divname ) { function fold( folder, divname ) {
Line 94: Line 93:
 * *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html) * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
-* @author     Fabian van-de-l_Isle <webmaster [at] lajzar [dot] co [dot] uk>+* @author     ta' Lajzar <webmaster [at] lajzar [dot] co [dot] uk>
 */ */
    
Line 118: Line 117:
   function getInfo(){   function getInfo(){
     return array(     return array(
-      'author' => 'Fabian van-de-l_Isle',+      'author' => 'ta Lajzar',
       'email'  => 'webmaster@lajzar.co.uk',       'email'  => 'webmaster@lajzar.co.uk',
       'date'   => '2005-07-09',       'date'   => '2005-07-09',
Line 251: Line 250:
 </code> </code>
  
-The [[plugin:hidden|hidden plugin]] works very effectively for folding code and can be installed via the plugin manager, once installed it can be used like <code><hidden Click to display/hide>Text to hide</hidden></code> 
-Also available is the [[plugin:folded|folded plugin]] 
---- //[[boardtc@gmail.com|boardtc]] 2009-08-18// 
plugin/inline_folding.1297440149.txt.gz · Last modified: 2011-02-11 17:02 by lupo49

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki