Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 53172 invoked from network); 27 Aug 2005 15:51:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Aug 2005 15:51:48 -0000 Received: (qmail 71776 invoked by uid 500); 27 Aug 2005 15:51:47 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 71695 invoked by uid 500); 27 Aug 2005 15:51:47 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Forrest Developers List" List-Id: Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 71682 invoked by uid 99); 27 Aug 2005 15:51:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2005 08:51:46 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 27 Aug 2005 08:52:03 -0700 Received: (qmail 53108 invoked by uid 65534); 27 Aug 2005 15:51:45 -0000 Message-ID: <20050827155145.53103.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r240430 - in /forrest/trunk/main/fresh-site/src/documentation: content/xdocs/samples/faq.xml skinconf.xml Date: Sat, 27 Aug 2005 15:51:45 -0000 To: svn@forrest.apache.org From: crossley@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: crossley Date: Sat Aug 27 08:51:40 2005 New Revision: 240430 URL: http://svn.apache.org/viewcvs?rev=240430&view=rev Log: A better demonstration for MOTD and enable it. Enhance explanation. Submitted by: Gav Issue: FOR-650 "MOTD Needs to have a working example" Modified: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml forrest/trunk/main/fresh-site/src/documentation/skinconf.xml Modified: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml?rev=240430&r1=240429&r2=240430&view=diff ============================================================================== --- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml (original) +++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml Sat Aug 27 08:51:40 2005 @@ -38,5 +38,20 @@ + + Message of the day (MOTD). + + + How do I enable MOTD? + + +

+ There is example MOTD code in /src/documentation/skinconf.xml. + Enable this and make sure the motd-option pattern URI points + to the page or pages you want the message to appear. +

+
+
+
Modified: forrest/trunk/main/fresh-site/src/documentation/skinconf.xml URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/skinconf.xml?rev=240430&r1=240429&r2=240430&view=diff ============================================================================== --- forrest/trunk/main/fresh-site/src/documentation/skinconf.xml (original) +++ forrest/trunk/main/fresh-site/src/documentation/skinconf.xml Sat Aug 27 08:51:40 2005 @@ -142,33 +142,36 @@ Note: This is only implemented in the pelt skin. If the optional element is used, then messages will be appended depending on the URI string pattern. - motd-option : Specifies a pattern to match and provides small text content. + motd-option : Each option will match a pattern and apply its text. + The "pattern" attribute specifies the pattern to be matched. + This can be a specific page, or a general pattern to match a set of pages, + e.g. everything in the "samples" directory. motd-title : This text will be added in brackets after the + and this can be empty. motd-page : This text will be added in a panel on the face of the page, - with the "motd-page-url" being the hyperlink "More". + with the "motd-page-url" being the hyperlink "More". Values for the "location" attribute are: page : on the face of the page, e.g. in the spare space of the toc alt : at the bottom of the left-hand navigation panel both : both --> -<!-- + <motd> - <motd-option pattern="docs_0_80"> - <motd-title>v0.8-dev</motd-title> + <motd-option pattern="samples/sample.html"> + <motd-title>sample</motd-title> <motd-page location="both"> - This is documentation for development version v0.8 + This is an example of a Message of the day (MOTD). </motd-page> - <motd-page-url>/versions/index.html</motd-page-url> + <motd-page-url>/samples/faq.html</motd-page-url> </motd-option> - <motd-option pattern="docs_0_70"> - <motd-title>v0.7</motd-title> + <motd-option pattern="samples/faq.html"> + <motd-title></motd-title> <motd-page location="both"> - This is documentation for current version v0.7 + How to enable this MOTD is on this page. </motd-page> - <motd-page-url>/versions/index.html</motd-page-url> + <motd-page-url>#motd</motd-page-url> </motd-option> </motd> ---> <!-- extra-css - here you can define custom css-elements that are