DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:editsections

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:editsections [2012-03-30 09:55] – [DokuWiki-2009-12-25] 67.171.54.60plugin:editsections [2023-10-30 22:45] (current) Klap-in
Line 6: Line 6:
 email      : dr4ke@dr4ke.net email      : dr4ke@dr4ke.net
 type       : action type       : action
-lastupdate : 2010-11-28 +lastupdate : 2011-04-17 
-compatible : 2006-05-23+2006-11-06, 2009-12-25 2010-11-07+compatible : LemmingAnteater
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : editsections2 
-tags       : gui, editing, section+tags       : !obsolete, !discontinued, editing, section
  
 downloadurl: https://github.com/dr4Ke/editsections/tarball/master downloadurl: https://github.com/dr4Ke/editsections/tarball/master
Line 18: Line 18:
 donationurl:  donationurl: 
 ---- ----
 +
 +===== Obsolete =====
 +
 +This plugin is now obsolete and won't be maintained as I don't use it anymore (at least by me, //Christophe Drevet// 14-10-2012). This other plugin can be used (didn't try it, though) plugin [[Editsections2]], developed on https://github.com/kazmiya/dokuwiki-plugin-editsections2
 +
 +See plugin [[Editsections2]]
 +
 +===== Plugin =====
  
 The "editsections" plugin moves edit section buttons up to the heading they originated from. Configurable for nested (hierarchical) or flat edit sections. Nested edit sections cover the same indentation level as their heading. The "editsections" plugin moves edit section buttons up to the heading they originated from. Configurable for nested (hierarchical) or flat edit sections. Nested edit sections cover the same indentation level as their heading.
Line 25: Line 33:
   * names in the summary   * names in the summary
  
-The [[:plugin:editsections|Edit Section Reorganizer Plugin]] is identified as "editsections" in the [[:plugin:plugin|Plugin Manager]].+The Edit Section Reorganizer Plugin is identified as "editsections" in the Plugin Manager.
  
 ===== Installing ===== ===== Installing =====
 ==== Plugin Manager ==== ==== Plugin Manager ====
-Use the [[:plugin:plugin|Plugin Manager]] to install this plugin from the following link: +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
- +
-https://github.com/dr4Ke/editsections/tarball/master +
- +
-==== Manually ==== +
-It also can be downloaded manually from the same URL. +
- +
-Unpack and place the "editsections" folder into the ''/lib/plugins/'' directory of your DokuWiki installation.+
  
  
Line 72: Line 73:
  }  }
   
- function register(&$controller) {+ function register(Doku_Event_Handler $controller) {
  $controller->register_hook('PARSER_HANDLER_DONE', 'BEFORE', $this, 'rewrite_sections');  $controller->register_hook('PARSER_HANDLER_DONE', 'BEFORE', $this, 'rewrite_sections');
  }  }
Line 403: Line 404:
 @Klap-in: You can do this by changing the ''addInitEvent()'' function in ''lib/scripts/script.js''. Simply replace any instance of ''previousSibling'' with ''nextSibling'' in that function (there are four places it needs to be changed) -- //DLO 5-Feb-2010// @Klap-in: You can do this by changing the ''addInitEvent()'' function in ''lib/scripts/script.js''. Simply replace any instance of ''previousSibling'' with ''nextSibling'' in that function (there are four places it needs to be changed) -- //DLO 5-Feb-2010//
  
-@DLO: Thanks, it works for the flat usage of this plugin. I added a script.js that works with both settings (flat and nested), a french translation and made a few other modifications and published a new version of this plugin. It can be downloaded at : [[http://github.com/downloads/dr4Ke/editsections/editsections.tar.gz]] -- //dr4Ke 11 May 2010// +@DLO: Thanks, it works for the flat usage of this plugin. I added a script.js that works with both settings (flat and nested), a french translation and made a few other modifications and published a new version of this plugin. It can be downloaded at : [[https://github.com/downloads/dr4Ke/editsections/editsections.tar.gz]] -- //dr4Ke 11 May 2010//
- +
-> It appears that the latest version of Dokuwiki (Angua 2012-01-25) no longer has the ''addInitEvent()'' function at ''lib/scripts/script.js'', and has instead replaced it with a JQuery version in ''page.js'' But it isn't clear how to make the same modification here.  Please advise.  //Dan Kirkdorffer 25-Mar-2012// +
- +
->> What I've had to do is update the ''sectionHighlight'' function in ''lib/scripts/page.js'' with the mouseover logic in ''editsections/script.js'' I can't seem to figure out how to have Dokuwiki otherwise ignore the default ''sectionHighlight'' function and use the plugins' version.  //Dan Kirkdorffer 30-Mar-2012//+
  
  
Line 441: Line 438:
  
 > They are. It's a dirty trick to display the edit button for the first section. I'm not a Web dev, maybe it can be done otherwise. //Christophe Drevet 14-04-2011// > They are. It's a dirty trick to display the edit button for the first section. I'm not a Web dev, maybe it can be done otherwise. //Christophe Drevet 14-04-2011//
 +
 +
 +====== DokuWiki-2012-01-25 ("Angua") ======
 +
 +It appears that the latest version of Dokuwiki (Angua 2012-01-25) no longer has the ''addInitEvent()'' function at ''lib/scripts/script.js'', and has instead replaced it with a JQuery version in ''page.js'' But it isn't clear how to make the same modification here.  Please advise.  //Dan Kirkdorffer 25-Mar-2012//
 +
 +> What I've had to do is update the ''sectionHighlight'' function in ''lib/scripts/page.js'' with the mouseover logic in ''editsections/script.js'' I can't seem to figure out how to have Dokuwiki otherwise ignore the default ''sectionHighlight'' function and use the plugins' version.  //Dan Kirkdorffer 30-Mar-2012//
plugin/editsections.1333094121.txt.gz · Last modified: 2012-03-30 09:55 by 67.171.54.60

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