Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 15662 invoked from network); 2 Apr 2011 17:59:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2011 17:59:01 -0000 Received: (qmail 3853 invoked by uid 500); 2 Apr 2011 17:59:01 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 3795 invoked by uid 500); 2 Apr 2011 17:59:00 -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 3788 invoked by uid 99); 2 Apr 2011 17:59:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2011 17:59:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Apr 2011 17:58:57 +0000 Received: (qmail 15590 invoked by uid 99); 2 Apr 2011 17:58:35 -0000 Received: from localhost.apache.org (HELO apache.org) (127.0.0.1) (smtp-auth username bdube, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2011 17:58:35 +0000 Date: Sat, 2 Apr 2011 10:58:36 -0700 From: Brian M Dube To: dev@forrest.apache.org Subject: Re: motd question Message-ID: <20110402175836.GE10165@beaver.dehavilland> Mail-Followup-To: dev@forrest.apache.org References: <201104011252.44036.uvemas@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201104011252.44036.uvemas@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Apr 01, 2011 at 12:52:41PM +0200, Vicent Mas wrote: > Hi, > > I'm trying to add a motd pane only to the main page of my dispatcher website. > Adding the following lines to my pelt-html.content.panel.xml makes the pane to > appear in every index.html page of the website: > > > > > > > My message here. > > > > > > I've changed the filename of the main page of my website following the > answer to question 2.13 of the FAQ: > > http://forrest.apache.org/docs_0_100/faq.html#defaultStartPage > > but I'd rather prefer to achieve my goal giving a proper path to the pattern > option of the motd contract. The problem is that the index.xml of the main > page is directly under the xdocs folder and I don't know how to be more > specific and tell forrest that I don't want the motd to be applied to the index > pages of subdirectories under xdocs. Could someone tell me how to do it, > please? The motd contract uses the XSLT contains() function to determine whether the motd is displayed for a given path. It does not appear that the contains() function is intelligent enough to do what you want. Also, a brief search shows a general lack of support for regular expressions in XSLT 1.0. Perhaps the motd could be injected via the Cocoon pipeline, where regular expressions are supported. -Brian