From forrest-dev-return-4994-apmail-xml-forrest-dev-archive=xml.apache.org@xml.apache.org Wed Mar 05 04:50:03 2003 Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 18972 invoked by uid 500); 5 Mar 2003 04:50:03 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 18957 invoked from network); 5 Mar 2003 04:50:02 -0000 Received: from grunt22.ihug.com.au (203.109.249.142) by daedalus.apache.org with SMTP; 5 Mar 2003 04:50:02 -0000 Received: from p854-apx1.syd.ihug.com.au (expresso.localdomain) [203.173.143.92] by grunt22.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 18qQr3-0005wZ-00; Wed, 05 Mar 2003 15:50:10 +1100 Received: from jeff by expresso.localdomain with local (Exim 3.35 #1 (Debian)) id 18qQsr-0001fk-00 for ; Wed, 05 Mar 2003 15:52:01 +1100 Date: Wed, 5 Mar 2003 15:52:01 +1100 From: Jeff Turner To: Jeff Turner Subject: Re: suppressing index.html Message-ID: <20030305045201.GA4941@expresso.localdomain> Mail-Followup-To: Jeff Turner References: <936982407.20030304223900@javable.com> <20030305034649.GB4376@expresso.localdomain> <10142068150.20030305000346@javable.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10142068150.20030305000346@javable.com> User-Agent: Mutt/1.4i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 > >