[dokuwiki] Re: How to number headlines ?

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 06 Apr 2006 09:03:03 +0200

Chris Smith writes:

How about:
(1) adding a new piece of meta data, meta['first_heading']. If the value is empty, the native header syntax will fill that with the first heading it comes across. Any alternate method of handling headings can do the same. Then as long as everything behaves well, there will be no clashes and the first heading can be set by anything.


(2) the first heading information gets added as the first instruction in the list by the _finalise handler. This would guarantee that the first heading information is quickly accessible in every document.

Taking this a step further, could all the page meta data get added to the first instruction in the page. This opens up the possibility for native syntax modes and plugins to add page settings information in a controlled manner that could be used by other parts of dokuwiki simply by reading the first instruction.[1]

Hi Chris!

Just a quick feedback. This sounds like an excellent idea. Unfortunately I'm busy this weekend so I can't do anything on DokuWiki. But feel free to start with these changes.

Andi


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

Other related posts: