Okay, I figured out how to do it myself, and here is the solution so you can have edit buttons on the section headers, like Wikipedia.
Open up the following file in a text editor.
"\dokuwiki\inc\parser\handler.php"
Near line 110 you will find this:
if ($level<=$conf['maxseclevel']) {
$this->_addCall('section_edit',array($this->status['section_edit_start'], $pos-1, $this->status['section_edit_level'], $this->status['section_edit_title']), $pos);
$this->status['section_edit_start'] = $pos;
$this->status['section_edit_level'] = $level;
$this->status['section_edit_title'] = $title;
}
Replace the above with this:
if ($level<=$conf['maxseclevel']) {
$this->status['section_edit_start'] = $pos;
$this->status['section_edit_level'] = $level;
$this->status['section_edit_title'] = $title;
$this->_addCall('section_edit',array($this->status['section_edit_start'], $pos-1, $this->status['section_edit_level'], $this->status['section_edit_title']), $pos);
}
Save and close the PHP file, and reload an article on your wiki -- and voila! you have successfully "modded" DokuWiki to have edit buttons near every header, to edit the corresponding section.
Hope this helps.
The only downsides are: (1) you'll see one extra edit button at the end the article (2) editing a section will show all wikitext in the article from that section onwards .. (both don't really matter so this fix is workable!) – Robinicks – 2009-08-20T09:28:05.503
Oh but there's another problem (3) editing a section seems to duplicate it when you save changes – Robinicks – 2009-08-20T10:32:02.193