>> 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,
Returning the plain string "tableofcontents.title" is not very userfriendly.
Why not returning something more usefull, like an in-page link to the
actual 'first' rendered toc ?
dirk