incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx" <dirk.frederi...@gmail.com>
Subject Re: table of contents in the left menu?
Date Mon, 30 Jun 2008 19:23:33 GMT
>> 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

Mime
View raw message