Section Edit

Author: WikiAdmin
Status: Evaluation -> Implementation
version: beta3 (see repo)


Allows to edit page section.


  • pull repo head for master or 6.0 branch, or download recent 6.1.15 or 6.0.33 package
  • activate in the Admin panel section_edit (Preferences -> Basic -> Editing)


  • config option for maximum section edit level (see WackoFormatter class)
  • user setting
  • refactoring, functions
  • GUI and message sets
  • section edit link to revisions
  • do not show section edit link in preview DONE
  • breaks with a === markup at the beginning of a new line
    • "/\n[ \t]*(={2,7})(.*?)={2,7}$/um" works – however does not works with text, even spaces, behind the header
    • solution?
  • purge also body_r to render all pages again DONE

What works:

  • edit section, including nested sections
  • section edit for included pages
  • section edit for comments
  • shows a edit link on the left for each page sub-header (h2 – h6)
  • shows a section header, a new icon there is (self made!)
  • redirects after edit to edited section
  • installer purges body_toc


  • All the magic happens in the edit handler. The edit section link is set within the header as editsection action in the WackoFormatter class.
  • The regex solution to build the page section array may be improved, see extract_sections() function in Wacko class.
    • the csv formatter syntax breaks it

This feature is at least since 2006 on the feature wishlist. It will help the user to edit just the section without scrolling through all the other sections,
it's a huge time saver and reduces the cognitive load.

The goal is to sort out open issues and add it to the core as soon as possible (even marked as experimental at the beginning and turned off by default).

Test the patch and share your ideas.

Implementation Notes

  • Some notes


  • section_edit

Implementation Log

Other Changes

Related Links

Future Ideas


  • Please provide feedback