Table of Contents
header2 Plugin
Compatible with DokuWiki
2013-03-06, 2012-10-13, 2012-01-25, 2011-05-25
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to header3, wikiformatstyling
This plugin (and the plugin Header3) became unavailable due to a technical reason (See this conversation). You can consider using Wiki-Style Script instead.
Installation and Usage
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
If your DokuWiki version is before 2012-10-13 “Adora Belle”, set 'renderer_xhtml' to “Header2” in the configuration manager after installation. For versions since 2012-10-13, use the default xhtml renderer.
The TOC is rendered by metadata renderer instead of xhtml renderer in general 'show' action. However in 'preview' mode the TOC is rendered by xhtml renderer. So in few situations you'll find the TOC different in preview and in show mode. (mostly it doesn't happen since metedata renderer renders 'abstract' for the article and what it does is to have all markups parsed except no html tags)
Here's the demo image for embedding syntax in the header with this plugin:
Development
Change Log
- Merge pull request #2 from splitbrain-forks/php7-signature (2016-02-07 04:07)
- Adjust method signatures to match parent (2016-02-02 16:06)
- Improve compatibility for old wiki versions to prevent possible crashes. (2013-03-19 04:32)
- Add xml renderer support. (2011-01-28 15:58)
- Next release. (2011-01-26 17:29)
- Moved procedures to syntax.php so we can get rid of renderer.php if $… (2011-01-26 17:18)
- Set $sectionedits to public to prevent problems if $sectionedits of x… (2011-01-26 05:01)
- Unify spaces and linefeeds. (2011-01-25 14:01)
Discussion
Conflict
After activating this plugin and changing the xhtml renderer to header2 all my instances of the include plugin using “section” no longer work..the whole page is shown instead. Upon deactivating this plugin, the include works again. - Andy 2011/01/24
Angua RC1 bug
Don't work with Angua RC1 (PHP Fatal Error) and can't be turned off. You have to add
$plugins['header2'] = 0;
to conf/plugin.local.php
to turn it off.
It shouldn’t work with Rincewind or Anteater either. header2 tries to read a property from the xhtml renderer class which is private and always was private (a similar problem is the reason for the header2 renderer component). — Adrian Lang 2011/12/23 23:38
This problem is fixed since 2012-10-13 “Adora Belle”, and we no more need to set the renderer to header2 in order to get this plugin work — danny0838 2013/03/17 05:35
ake your first steps on the playground. Draft autosaved on 2013/05/12 19:01 Media
tag-bug
when defining tags with tag containing mutated vowels (ä,ö,ü), the linked headings on this page won't show themselves after leaving the page and visiting it again. Instead the headings are shown like header2 is turned off. (Nait Sabes, 12.05.2013)