From c5a8fd9606f6ad8de87e3f7563aa190872e302c0 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 19 Feb 2006 00:07:44 +0100 Subject: create unique IDs for sections This patch finally completes the support for unique section IDs. To achive this the mechanism how the TOC is build was changed. The TOC now is build in the renderer only. Currently the TOC will be rendered in the end_document function and is then prepended to the doc. This should ensure compatibility with the rest of the code. Adding support for separating the TOC from the page should now be a simpler task in the future. TODO: - Update base class - remove commented old TOC code - make sure no other parts of the code use any of the old TOC code darcs-hash:20060218230744-7ad00-40c5463d93f8ae1c543fb4fed747b2047b4c1302.gz --- inc/parser/handler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'inc/parser/handler.php') diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 3609e23a8..4653cf603 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -37,10 +37,12 @@ class Doku_Handler { $this->calls = $B->process($this->calls); } +/** FIXME deprecated if ( $this->meta['toc'] ) { $T = & new Doku_Handler_Toc(); $this->calls = $T->process($this->calls); } +*/ array_unshift($this->calls,array('document_start',array(),0)); $last_call = end($this->calls); @@ -1495,6 +1497,9 @@ class Doku_Handler_Block { } //------------------------------------------------------------------------ + +/** FIXME deprecated + define('DOKU_TOC_OPEN',1); define('DOKU_TOCBRANCH_OPEN',2); define('DOKU_TOCITEM_OPEN',3); @@ -1671,6 +1676,6 @@ class Doku_Handler_Toc { } } - +*/ //Setup VIM: ex: et ts=4 enc=utf-8 : -- cgit v1.2.3