You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Terrence Brannon <me...@gmail.com> on 2006/06/27 20:37:56 UTC

question - site.xml top-level reference to a file

I want to create a child of the <site> element which will render as a menu
element and be an HTML file:

<site label="LivingCosmos" href="" xmlns="
http://apache.org/forrest/linkmap/1.0" tab="">
  <about label="About">
    <index label="Index" href="index.html" description="Welcome to
LivingCosmos"/>
  </about>

  <a2012 label="2012" href="2012/index.html" />


  ...
</site>

but the <a2012> label is not being rendered in the menu. I do not want to
create a fake container for it. I want the HTML file 2012/index.html to show
up when people click on the top-level menu item.

How can I do this?

Re: question - site.xml top-level reference to a file

Posted by David Crossley <cr...@apache.org>.
Terrence Brannon wrote:
> Ross Gardler wrote:
> >
> >I always thought you could do this, but I have confirmed that this does
> >not work in 0.8-dev (which version are you using?).
> 
> I'm using 0.7 because there  appear to be the most docs for it.

That is not correct. Forrest-0.8-dev has the up-to-date doc
collection. It is based on the previous 0.7 set.

You might be referring to the left-hand navigation menu.
It has been enhanced to better classify the docs.
They are all still there, just re-arranged the menu links.

-David

> But assuming
> I don't fall overboard with opml, I might come back for some more Forrest
> hacking.

Re: question - site.xml top-level reference to a file

Posted by Terrence Brannon <me...@gmail.com>.
On 6/27/06, Ross Gardler <rg...@apache.org> wrote:
>
>
> I always thought you could do this, but I have confirmed that this does
> not work in 0.8-dev (which version are you using?).


I'm using 0.7 because there  appear to be the most docs for it. But assuming
I don't fall overboard with opml, I might come back for some more Forrest
hacking.

Re: question - site.xml top-level reference to a file

Posted by Ross Gardler <rg...@apache.org>.
Terrence Brannon wrote:
> I want to create a child of the <site> element which will render as a 
> menu element and be an HTML file:
> 
> <site label="LivingCosmos" href="" xmlns=" 
> http://apache.org/forrest/linkmap/1.0" tab="">
>   <about label="About">
>     <index label="Index" href="index.html" description="Welcome to 
> LivingCosmos"/>
>   </about>
> 
>   <a2012 label="2012" href="2012/index.html" />
> 
> 
>   ...
> </site>
> 
> but the <a2012> label is not being rendered in the menu. I do not want 
> to create a fake container for it. I want the HTML file 2012/index.html 
> to show up when people click on the top-level menu item.
> 
> How can I do this?

I always thought you could do this, but I have confirmed that this does 
not work in 0.8-dev (which version are you using?).

This would be pretty easy to resolve, see the stylesheets in the 
relevant skin package. Patches are welcome (ask if you need more pointers).

Ross