incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: table of contents in the left menu?
Date Fri, 27 Jun 2008 06:04:56 GMT

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

Mime
View raw message