On Wed, Mar 05, 2003 at 12:03:46AM -0400, Sergey Missan wrote: > Hello Jeff, > > JT> I'm not sure what you're trying to do. Do you want to completely exclude > JT> .../index.html links, or just trim off the 'index.html' bit? > Sorry, I should explain myself better -- yes trim the 'index.html' > part in menu-s. Most of url-s we have are directories, and I don't > like this index.html-centric behavior of forrest. Neither do I. It's a Cocoon command-line thing. There was some talk recently of fixing it. > If I use directories in my site.xml, for example: > > > > > > > forrest will > 1 add index.html to the resulting links in menu (wrong!) Is it wrong because the {begin,ch1,ch2}/index.html files don't exist? Put another way, if you type 'forrest run', then view the site at http://localhost:8888/, does the menu behave as expected? If so, then there is an easyish fix: prevent the Cocoon command-line from trying to render the links to directories (and adding 'index.html'). http://marc.theaimsgroup.com/?l=forrest-dev&m=104605498612122&w=2 http://cvs.apache.org/~jefft/tmp/forrest/skipdirs.tgz > 2 won't properly highlight selected document in menu (looks like it > related to the way it does $actual-path = $path-noext" in book2menu > -- it requires name of the file there, not just directory) If you have a link to 'ch1/', then unless you're planning to give the user a directory listing, you'll have to serve a real file. Typically 'ch1/' redirects to 'ch1/index.html'. If Cocoon generated that file, why wouldn't it be in the menu, and therefore be highlighted? > JT> So if the menu doesn't point to foo/index.html, and it isn't referenced > JT> in the body of any page, then it is assumed un-get-to-able and won't be > JT> rendered. Perhaps this is the problem? > > No, it just the way menu (and tabs too) are generated. It requires name of the file > to be specified in site.xml, or adds index.html to all links. And I want > it to leave those /-terminated links alone. So the question is whether the problem is with the Cocoon command-line, or the Forrest stylesheets. --Jeff > -- Sergey > >