You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by THOMAS BENOIT <th...@iecs.edu> on 2004/11/18 17:44:39 UTC

slightly different navigation

Hello,

Has anyone written a skin which generates a slightly different type of
navigation. I prefer to explain myself with the following example :
Let's say site.xml looks like this :

<?xml version="1.0"?>
<site label="Forrest" href="" tab="home"
  xmlns="http://apache.org/forrest/linkmap/1.0">
  <community label="Community" href="community/" tab="community">
    <index label="About" href="index.html"/>
    <howto-samples label="How-To Samples" href="howto/" tab="howto">
      <overview label="Overview" href="index.html"/>
      <single-page label="Single Page" href="v10/howto-v10.html"/>
      <multi-page label="Multi-Page" href="multi/">
        <intro label="Intro" href="howto-multi.html"/>
        <step1 label="Step 1" href="step1.html"/>
        <step2 label="Step 2" href="step2.html"/>
      </multi-page>
    </howto-samples>
  </community>
</site>

Question :
I would like that, when someone clicks on the link "How-To Samples", the
page "howto/index.html" is displayed without having to click on the link
"Overview" (I would like to avoid this second click). This can be pretty
useful for small websites.

Thank you for your help,

Thomas

----------------------------------------------------
Thomas Benoit
Ottawa, CANADA
Phone: (613) 244 1662



Re: slightly different navigation

Posted by Ross Gardler <rg...@apache.org>.
THOMAS BENOIT wrote:
> Has anyone written a skin which generates a slightly different type of
> navigation. I prefer to explain myself with the following example :
> Let's say site.xml looks like this :
> 
> <?xml version="1.0"?>
> <site label="Forrest" href="" tab="home"
>   xmlns="http://apache.org/forrest/linkmap/1.0">
>   <community label="Community" href="community/" tab="community">
>     <index label="About" href="index.html"/>
>     <howto-samples label="How-To Samples" href="howto/" tab="howto">
>       <overview label="Overview" href="index.html"/>
>       <single-page label="Single Page" href="v10/howto-v10.html"/>
>       <multi-page label="Multi-Page" href="multi/">
>         <intro label="Intro" href="howto-multi.html"/>
>         <step1 label="Step 1" href="step1.html"/>
>         <step2 label="Step 2" href="step2.html"/>
>       </multi-page>
>     </howto-samples>
>   </community>
> </site>
> 
> Question :
> I would like that, when someone clicks on the link "How-To Samples", the
> page "howto/index.html" is displayed without having to click on the link
> "Overview" (I would like to avoid this second click). This can be pretty
> useful for small websites.

Would it suit you if there was no collapsing menu at all?

I'm not sure if it is possible to turn off the javascript menu, but if 
it isn't it should be. Any other devs know if this is possible?

Ross