You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Ferdinand Soethe <sa...@soethe.net> on 2005/02/24 20:29:20 UTC

Cannot make directory based menue work, any ideas?

I'm playing with different approaches of building menues in forrest
and tried to set up the directory based selection according to
the documentation

1. Setting forrest.properties in my project directory like this:

##############
# behavioural properties
#project.menu-scheme=tab_attributes
project.menu-scheme=directories

Btw. What ss the other setting "tab_attributes" for?

2. created a dir structure in my xdocs dir

xdocs
+---How To Customize html Processing
+---images
+---Testing anchor processing of html file

3. removed all ids from tabs.xml

<tabs software="MyProj"
  title="MyProj"
  copyright="Foo"
  xmlns:xlink="http://www.w3.org/1999/xlink">


</tabs>

4. cleaned out site.xml

<site label="MyProj" href="" xmlns="http://apache.org/forrest/linkmap/1.0" tab="">

</site>


As far as I understood, Forrest should now build a menu from the
subdirectories, right? Well it doesn't.

To be sure I added some dirs with simple name like test1 and test11,
no difference.

Any idea what I'm doing wrong?


--
Ferdinand Soethe



Re: Cannot make directory based menue work, any ideas?

Posted by Ferdinand Soethe <sa...@soethe.net>.
Ross Gardler wrote:

RG> I assume you are referring to 
RG> http://forrest.apache.org/docs/linking.html#other-menu-selection If so I
RG> think you have misunderstood the docs. This is an alternative menu
RG> *selection* mechanism, not an alternative menu generation mechanism.

Yes, thanks for pointing that out. Now I understand why you have to
remove the IDs.

--
Ferdinand Soethe



Re: Cannot make directory based menue work, any ideas?

Posted by Ross Gardler <rg...@apache.org>.
Ferdinand Soethe wrote:
> I'm playing with different approaches of building menues in forrest
> and tried to set up the directory based selection according to
> the documentation

I assume you are referring to 
http://forrest.apache.org/docs/linking.html#other-menu-selection If so I 
think you have misunderstood the docs. This is an alternative menu 
*selection* mechanism, not an alternative menu generation mechanism.

> 
> 1. Setting forrest.properties in my project directory like this:
> 
> ##############
> # behavioural properties
> #project.menu-scheme=tab_attributes
> project.menu-scheme=directories
> 
> Btw. What ss the other setting "tab_attributes" for?

That's the default behaviour, i.e. what you get if you don't uncomment 
anything.

Ross