forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: [Poll] your interest in plugins to be deployed
Date Fri, 13 Apr 2007 12:06:50 GMT


> -----Original Message-----
> From: Cyriaque Dupoirieux [mailto:cyriaque.dupoirieux@pcotech.fr]
> Sent: Friday, 13 April 2007 8:02 PM
> To: dev@forrest.apache.org
> Subject: Re: [Poll] your interest in plugins to be deployed
> 
> Gav.... a écrit :
> >
> >> -----Original Message-----
> >> From: David Crossley [mailto:crossley@apache.org]
> >> Sent: Thursday, 12 April 2007 12:10 PM
> >> To: dev@forrest.apache.org
> >> Subject: Re: [Poll] your interest in plugins to be deployed
> >>
> >> Oh, while doing that if you can dream up any new
> >> plugins that might be useful, then please create
> >> an issue in our Jira Issue tracker.
> >> http://forrest.apache.org/issues.html
> >>
> >> Use these settings ...
> >>   Component: Plugins: Potential new
> >>   Type: New Feature
> >>
> >> -David
> >>
> >
> > Just wanted to bounce this one around before creating an issue.
> >
> > I would like a mySQL plugin, I see we have a database plugin, but has no
> > mySQL functionality. Can this be extended, so the database plugin has
> > options so you choose or configure which database to use, or would a
> > separate plugin for each type be better?
> >
> > I would also like PHP input and output functionality. I can't see any
> other
> > way of doing it, PHP code as input (in an .xml file?) and the PHP
> enabled
> > file must be .php extension of course to be parsed server-side. Thoughts
> > on a plugin for this?
> >
> Don't need a plugin to do this, just add a match in your sitemap.xmap
> such like :
> 
>     <map:match type="regexp" pattern="^(.*?)([^/]*).php$">
>           <map:generate src="cocoon://{1}{2}.html"/>
>           <map:serialize type="html" />
>      </map:match>
> 
> And use in the source the process-instruction tags to integrate your php
> code in the file :
> 
> <?php
>       @ ... php code ... ;
> ?>

Excellent, thanks ! 

Maybe this match should be provided by default , we can then advertise the
fact that Forrest is PHP enabled from the outset ?

Gav...(Off to try it out)


> 
> HTH,
> Salutations,
> Cyriaque,
> 
> > Immediate use case for both would be a login facility, use PHP to
> interact
> > with mySQL database.
> >
> > Gav...
> >
> >
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date:
> 4/5/2007
> >> 3:33 PM
> >>
> >
> >
> >
> 
> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
> 3:33 PM


Mime
View raw message