You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Alex Sansom <Al...@x-port.net> on 2003/10/22 18:14:16 UTC
Forrest not generating .html from .xml files
Hi there,
I'm not sure if i'm missing something here as I'm quite new to forrest so
please bear with me.
I am producing a static site using forrest. I am also incorporating some
ASPs into the site as we need a registration facility. All fine.
Now, the problem I'm having is that I need to have a separate section of the
site that is only available to certain users (hence the registration) but I
still need to generate the content of this restricted part of the site using
forrest.
I can't link to this separate section in site.xml as I can with all the
other site content as it will be incorporated into the site menus and all
users will be able to access it! If I don't link to the files in site.xml
then my content is not generated!
For instance :
I have the directory structure -
xdocs/*.xml
xdocs/a/*.xml
Which all users can access. I then have :
xdocs/b/*.xml
Which only certain (registered) users should be able to access.
In site.xml, if I use :
<site label="mysite" href="" xmlns="http://apache.org/forrest/linkmap/1.0" >
<public label="Public stuff">
<index label="Index" href="index.html" />
<page2 label="Page2" href="page2.html" />
</public>
<more_public label="Other Public stuff" href="a/">
<index label="Index" href="index.html" />
<page2 label="Page2" href="page2.html" />
</more_public>
<restricted href="b/"> <!-- NOTE NO "LABEL" -->
<index href="index.html" />
<something href="something.html" />
</restricted>
....
</site>
.. Then run forrest, only content in the "/" and "/a" folders is generated
and there are no errors. If I include the "label" attribute on the
"restricted" tag then content is generated in the /b dir but a link is also
included in the menu (which I don't want). Can I generate content in the
"/b" but not have it linked to in the menu ? Has anybody any suggestions /
pointers ?
The best reference I can find in the documentation is in the "menus and
linking" section which says "Elements without label attributes (and their
children) are not displayed in the menu". (Not, arent generated). Are there
any more docs about site.xml ?
I hope this makes sense ! Thanks,
Alex
P.S I'm using Forrest 0.5, if that makes a difference ?