You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Todd Chambery <ch...@suppressingfire.org> on 2003/08/04 19:40:32 UTC

linking to internal to site, non-forrest-generated html files

Hi guys,

First, thanks for a very cool product... this makes website management
cake.

Now for my question (searched the archive/faq):

I have a resume.html that's generated external to Forrest, i.e. I don't
have a resume.xml.  When I put the resume.html in a directory and add a
link to it, I get an error on generation saying it can't find
resume.xml.  A Cocoon error file named resume.html is created where the
real file should be.  Seems like my file should be copied over from the
content directory.

How/where do I put non-forrest-generated html files to be ref'd from
within my website?

Thanks,

Todd 


Re: linking to internal to site, non-forrest-generated html files

Posted by Jeff Turner <je...@apache.org>.
On Tue, Aug 05, 2003 at 11:19:12AM -0400, Todd Chambery wrote:
> Thanks, that was what I was looking for.
> 
> Just for the archive (this is probably in the docs, but I missed it):
> 
> I added an element to site.xml called "<resume>":
> <site label="My Website" href=""
> xmlns="http://apache.org/forrest/linkmap/1.0">
> 
>   <resume label="Resume" href="resume.html"/>
> 
> where resume.html file lives in src/documentation/content/
 
That's right.

> in my content/xdocs/prof/book.xml, I refer to this by:
> 
>   <menu label="Professional Home">
>     <menu-item label="General Resume" href="site:resume"/>

(FYI, book.xml is deprecated in favour of just site.xml.  If you know
that, ignore me ;P)

--Jeff

> Thanks again and keep up the good work,
> 
> Todd

Re: linking to internal to site, non-forrest-generated html files

Posted by Todd Chambery <ch...@suppressingfire.org>.
Thanks, that was what I was looking for.

Just for the archive (this is probably in the docs, but I missed it):

I added an element to site.xml called "<resume>":
<site label="My Website" href=""
xmlns="http://apache.org/forrest/linkmap/1.0">

  <resume label="Resume" href="resume.html"/>

where resume.html file lives in src/documentation/content/

in my content/xdocs/prof/book.xml, I refer to this by:

  <menu label="Professional Home">
    <menu-item label="General Resume" href="site:resume"/>
 
Thanks again and keep up the good work,

Todd


On Mon, 2003-08-04 at 20:51, Jeff Turner wrote:
> On Mon, Aug 04, 2003 at 01:40:32PM -0400, Todd Chambery wrote:
> > Hi guys,
> > 
> > First, thanks for a very cool product... this makes website management
> > cake.
> > 
> > Now for my question (searched the archive/faq):
> > 
> > I have a resume.html that's generated external to Forrest, i.e. I don't
> > have a resume.xml.  When I put the resume.html in a directory and add a
> > link to it, I get an error on generation saying it can't find
> > resume.xml.  A Cocoon error file named resume.html is created where the
> > real file should be.  Seems like my file should be copied over from the
> > content directory.
> > 
> > How/where do I put non-forrest-generated html files to be ref'd from
> > within my website?
> 
> In src/documentation/content/.  The seed webapp ('forrest seed') has an
> example of this.
> 
> Cheers,
> 
> --Jeff
> 
> 
> > Thanks,
> > 
> > Todd 
> > 


Re: linking to internal to site, non-forrest-generated html files

Posted by Jeff Turner <je...@apache.org>.
On Mon, Aug 04, 2003 at 01:40:32PM -0400, Todd Chambery wrote:
> Hi guys,
> 
> First, thanks for a very cool product... this makes website management
> cake.
> 
> Now for my question (searched the archive/faq):
> 
> I have a resume.html that's generated external to Forrest, i.e. I don't
> have a resume.xml.  When I put the resume.html in a directory and add a
> link to it, I get an error on generation saying it can't find
> resume.xml.  A Cocoon error file named resume.html is created where the
> real file should be.  Seems like my file should be copied over from the
> content directory.
> 
> How/where do I put non-forrest-generated html files to be ref'd from
> within my website?

In src/documentation/content/.  The seed webapp ('forrest seed') has an
example of this.

Cheers,

--Jeff


> Thanks,
> 
> Todd 
>