Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 50377 invoked from network); 26 Jul 2005 21:38:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 21:38:48 -0000 Received: (qmail 31892 invoked by uid 500); 26 Jul 2005 21:38:12 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 31797 invoked by uid 500); 26 Jul 2005 21:38:11 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 31760 invoked by uid 99); 26 Jul 2005 21:38:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 14:38:10 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.169.145.166] (HELO natnoddy.rzone.de) (81.169.145.166) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 14:38:02 -0700 Received: from 192.168.2.2 (42.Red-83-34-113.pooles.rima-tde.net [83.34.113.42]) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id j6QLc5hp001203 for ; Tue, 26 Jul 2005 23:38:06 +0200 (MEST) Subject: forrest:hooks configurations examples (was [Views]
strange behaviour) From: Thorsten Scherler To: dev@forrest.apache.org Content-Type: text/plain Date: Tue, 26 Jul 2005 23:38:03 +0200 Message-Id: <1122413883.5129.27.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello devs, I just extended the behavior of forrest:hooks. Here are some example how you can easily change the output of forrest:hooks. The default behavior is not changed. > * If a template embedded by a hook is empty - this is my case for > sub-tabs, the generated hook is : > o
*or* will be transformed into
The same is true for @class attribute for forrest:hooks. *or* will be transformed into
Another feature is that you can as well output span elements for forrest:hooks instead of div elements. will be transformed into Alternative to enable: > So I'm not blocked, but can we change the hook generation in order > to generate : > > *
> > Rather than : > > *
> > If a template does not generate anything... You can use the @nbsp='true' attribute to enable this behaviour: will be transformed into (with a   aka  )
Here is a small summary example: will be transformed to:
Thanks for reporting/requesting the   bug/feature, Cyriaque. That reminded me about the @type='span' on my todos. ;-) HTH salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)