You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@apache.org> on 2004/08/16 14:56:10 UTC
automatically added meta information
The generation of the following metadata information
is now being written to the head of all html documents.
The details are gathered during the build and saved
as an xml snippet. When Cocoon processes the pages
it aggregates that data into the page.
<head>
<meta content="Apache Forrest" name="Generator">
<meta name="Forrest-version" content="0.6-dev">
<meta name="Forrest-skin-name" content="crust">
<meta name="DC.date" content="2004-08-16T07:20Z">
<title> ...
However, the ability is not yet configurable. It could
also be extended to add other site-specific metadata.
--
David Crossley
Re: automatically added meta information
Posted by "Scherler, Thorsten" <th...@apache.org>.
David Crossley wrote:
> However, the ability is not yet configurable. It could
> also be extended to add other site-specific metadata.
>
How about in skinconf e.g.:
<metas>
<meta name="Author" content="T. Scherler"/>
...
</metas>
In common site2xhtml.xsl we can add a match for that.
WDYT?
thorsten
Re: automatically added meta information
Posted by Nicola Ken Barozzi <ni...@apache.org>.
David Crossley wrote:
> David Crossley wrote:
>
>>Dave Brondsema wrote:
>>
>>>The src/core/context/WEB-INF/info.xml that it generates should not be in
>>>$FORREST_HOME, but in the project home somewhere. Many systems will be
>>>configured where projects don't have write access to $FORREST_HOME.
>>
>>Yeah, sorry. I meant to say that that was something that
>>needs to be attended to. However, i am not sure how to.
>
> Dave, thanks for your attempted fix at r36634
> to put the info.xml in a project-specific temp directory.
>
> However, that doesn't work because when doing 'forrest war'
> then running that under a full Jetty, there is no build/tmp/
>
> I have been trying to use WEB-INF/info.xml but it too does
> not seem to be consistent between the various incarnations
> of Forrest, i.e. 'forrest' and 'forrest run' and 'forrest war'.
IMHO the correct solution is to write a CocoonMetaGenerator. If it needs
to get values from Ant, it can get them from java env values that are
passed to it, like we do for forrest.home and project.home
@see
http://cvs.apache.org/viewcvs.cgi/forrest/trunk/src/java/org/apache/forrest/conf/ForrestConfUtils.java?rev=36657&root=Apache-SVN&view=markup
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: automatically added meta information
Posted by David Crossley <cr...@apache.org>.
David Crossley wrote:
> Dave Brondsema wrote:
> >
> > The src/core/context/WEB-INF/info.xml that it generates should not be in
> > $FORREST_HOME, but in the project home somewhere. Many systems will be
> > configured where projects don't have write access to $FORREST_HOME.
>
> Yeah, sorry. I meant to say that that was something that
> needs to be attended to. However, i am not sure how to.
Dave, thanks for your attempted fix at r36634
to put the info.xml in a project-specific temp directory.
However, that doesn't work because when doing 'forrest war'
then running that under a full Jetty, there is no build/tmp/
I have been trying to use WEB-INF/info.xml but it too does
not seem to be consistent between the various incarnations
of Forrest, i.e. 'forrest' and 'forrest run' and 'forrest war'.
Anyway, i will persist.
--
David Crossley
Re: automatically added meta information
Posted by David Crossley <cr...@apache.org>.
Dave Brondsema wrote:
>
> The src/core/context/WEB-INF/info.xml that it generates should not be in
> $FORREST_HOME, but in the project home somewhere. Many systems will be
> configured where projects don't have write access to $FORREST_HOME.
Yeah, sorry. I meant to say that that was something that
needs to be attended to. However, i am not sure how to.
--
David Crossley
Re: automatically added meta information
Posted by Dave Brondsema <da...@brondsema.net>.
On Mon, 16 Aug 2004, David Crossley wrote:
> The generation of the following metadata information
> is now being written to the head of all html documents.
>
> The details are gathered during the build and saved
> as an xml snippet. When Cocoon processes the pages
> it aggregates that data into the page.
>
> <head>
> <meta content="Apache Forrest" name="Generator">
> <meta name="Forrest-version" content="0.6-dev">
> <meta name="Forrest-skin-name" content="crust">
> <meta name="DC.date" content="2004-08-16T07:20Z">
> <title> ...
>
> However, the ability is not yet configurable. It could
> also be extended to add other site-specific metadata.
>
The src/core/context/WEB-INF/info.xml that it generates should not be in
$FORREST_HOME, but in the project home somewhere. Many systems will be
configured where projects don't have write access to $FORREST_HOME.
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
http://csx.calvin.edu : student org