Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 3184 invoked from network); 27 Jun 2008 06:05:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2008 06:05:30 -0000 Received: (qmail 99292 invoked by uid 500); 27 Jun 2008 06:05:31 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 99275 invoked by uid 500); 27 Jun 2008 06:05:31 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 99264 invoked by uid 99); 27 Jun 2008 06:05:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 23:05:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Janne.Jalkanen@ecyrd.com designates 193.64.5.122 as permitted sender) Received: from [193.64.5.122] (HELO mail.ecyrd.com) (193.64.5.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 06:04:40 +0000 Received: from [192.168.0.10] (cs181005170.pp.htv.fi [82.181.5.170]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.ecyrd.com (Postfix) with ESMTP id 3C3C7708040 for ; Fri, 27 Jun 2008 09:04:59 +0300 (EEST) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <15cc92000806261338j7c49a309qf0c687da2ecdb462@mail.gmail.com> References: <15cc92000806260942u7898a0a4x41bbdd9176338bea@mail.gmail.com> <15cc92000806261338j7c49a309qf0c687da2ecdb462@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <09EBDFC4-610A-4042-AFB8-38ED629742CC@ecyrd.com> Content-Transfer-Encoding: 7bit From: Janne Jalkanen Subject: Re: table of contents in the left menu? Date: Fri, 27 Jun 2008 09:04:56 +0300 To: jspwiki-user@incubator.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org 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