Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 30677 invoked from network); 24 Jul 2005 00:08:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2005 00:08:36 -0000 Received: (qmail 23815 invoked by uid 500); 24 Jul 2005 00:08:35 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 23789 invoked by uid 500); 24 Jul 2005 00:08:35 -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 23773 invoked by uid 99); 24 Jul 2005 00:08:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2005 17:08:35 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DATE_IN_FUTURE_96_XX X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [217.199.181.91] (HELO ns3.wkwyw.net) (217.199.181.91) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 23 Jul 2005 17:08:27 -0700 Received: (qmail 20592 invoked from network); 24 Jul 2005 00:08:31 -0000 Received: from 82-69-78-226.dsl.in-addr.zen.co.uk (HELO ?192.168.0.4?) (82.69.78.226) by ns3.wkwyw.net with SMTP; 24 Jul 2005 00:08:31 -0000 Message-ID: <430BC885.5050403@apache.org> Date: Wed, 24 Aug 2005 03:08:21 +0200 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: [RT] Dynamic Content in Forrest References: <49988844050722185173af7320@mail.gmail.com> In-Reply-To: <49988844050722185173af7320@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Tim Williams wrote: > I'm wondering how folks handle dynamic content within their Forrest > sites. Forrest has a stated goal to provide static representations of sites where possible. However, some of us do use it in dynamic environments and now we have plugins we can afford to relax things a little with respect to dynamic sites. Having said that, Forrest does not resist dynamic content, it just likes to see a static alternative wherever possible. For example, Lucene searches can be replaced by a Google search box. > Specifically, I'm wondering about the following use-cases (there are > others but these are exemplars for discussion: Before answering specific use cases let me first say that since Forrest is built on Cocoon you will usually find that the solution for all use cases are in the Cocoon framework somewhere. > 1) Permissions. Do you just use standard web server functionality to > handle permissions? What happens when you web site scales and you > need credentials independent of the server? Has anyone accounted for > that? See the authorisation block in Cocoon > 2) Sessions. Clearly related to the above, what's the approach for a > "session" in Forrest? There was a discussion recently on Cocoon-users > (i think) that asked what if I simply want to change the site header > depending on who the user is? There are many of ways of working with sessions in Cocoon. The easiest, but least flexible is to use the {request:*} parameters in the sitemap. There is also a request generator that allows you to aggregate the request parameters with the source document. For full flexibility you should really think about installing the Flow block from Cocoon. > 3) Discussion Forum/Bulletin Board. Say I've got a site that's 95% > content but I want to have a simple discussion forum, how do i > integrate it? I've noticed one of the example sites uses IFrames but > that doesn't seem like a very clean solution to me. Choose the bulletin board software you like and use the HTML generator to get the relevant content from the forum software and embed it within a Forrest site like any other source file. > I guess the database plugin answers the question when the *content* is > dynamic, so the question is really when we want to integrate simple > applications into Forrest. Anyway, I throw that out there... > thoughts? Plugins are your friend :-) In the past Forrest would probably have resisted these ideas. However, now we have plugins users/devs can easily create these kinds of applications without having to fork Forrest. The question is whether Forrest wants to host these kinds of plugins since they will not work in a static environment. We'll worry about that later though, they can always be hosted elsewhere. Ross