[dokuwiki] Re: book navigation features

Michael Edwards wrote:

*Automagic Heading numbers So you would just do something like have a <section> tag and it would figure out its number

I did write a header replacement plugin which provides numbering.

http://wiki.jalakai.co.uk/dokuwiki/doku.php/tutorials/header

As I recall it has some drawbacks because headings are tightly wrapped in DokuWiki's own section management. There was a discussion on this list on the topic back in late March/early April. Some of the recent changes to the parser may make it easier to do now.

The simplest solution may be to have a syntax token trigger your handling the PARSER_HANDLER_DONE event and trawl the instruction list adding your chosen numbering system to the text in the header instructions. Hackish but effective.

Cheers,

Chris




-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: