On Jun 26, 2008, at 23:38 , Dirk Frederickx wrote:

Janne,

Is there a reason why the TOC is only rendered the first time on a page ?


if( context.getVariable( VAR_ALREADY_PROCESSING ) != null )
            return rb.getString("tableofcontents.title");

Yes. Since we parse the entire page, we need to stop the TableOfContents plugin being re-executed recursively. This has the side-effect of allowing only one ToC per page.

/Janne

Reply via email to