Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 39023 invoked from network); 21 Dec 2003 22:11:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Dec 2003 22:11:19 -0000 Received: (qmail 66146 invoked by uid 500); 21 Dec 2003 21:00:36 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 66117 invoked by uid 500); 21 Dec 2003 21:00:36 -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 66105 invoked from network); 21 Dec 2003 21:00:35 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 21 Dec 2003 21:00:35 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AYAgq-0004Kk-00 for ; Sun, 21 Dec 2003 22:00:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: forrest-dev@xml.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYAgo-0004Kc-00 for ; Sun, 21 Dec 2003 22:00:38 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AYAgo-0004bN-00 for ; Sun, 21 Dec 2003 22:00:38 +0100 From: Nicola Ken Barozzi Subject: Re: Multiple tab.xml files Date: Sun, 21 Dec 2003 21:57:20 +0100 Lines: 106 Message-ID: References: <3FE51343.5010202@wkwyw.net> <3FE5BC93.8040608@wkwyw.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en In-Reply-To: <3FE5BC93.8040608@wkwyw.net> Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ross Gardler wrote: > Ross Gardler wrote: > >> I would like different tabs to appear in different directories on my >> site. For example, on the site home page I have tabs to each course >> offered, on a course page I have tabs to each module of a course. >> >> Is this currently possible. If not are there any problems with me >> allowing a local tabs.xml file to take precedence over the root one. >> Kind of like book.xml overriding the site.xml file. It has been intentional. Tabs should never change during navigation, it's confusing. What you may want instead are hierarchical tabs, as seen here: http://www.oreillynet.com/ In this way we still have the same top-level tabs, but then the other ones below change when the top ones do. > I've been experimenting with this whilst waiting for objects. There is a > problem - you have to include a tabs.xml file in all subdirectories, not > very manageable. So I have another proposal. > > If we have a tabGroups.xml file in the root folder, for example > > > > > > > ... > > > > > > > > ... > There, see that you have hierarchical tabs? ;-) > We can then use that to create a tabs.xml file by using a stylesheet > (similar to site.xml being transformed into book.xml. > > If tabgroups.xml is absent then we revert to using tabs.xml so we have > backward compatability. > > I almost have this working (just a problem with deciding which tabs to > show, at the moment everything below the current directory gets shown, > so with the above if we are in "courses/cocoon" we would get both tab > groups. > > Is this a good addition to Forrest or shall I keep it within my own > customisation?> Instead of recreating a new file we can easily extend the current tabs.xml, and this *should* make it backward compatible: As long as we are able to filter //tab/tab elements, also old skins should work, and the new ones can use subtabs. But let me add another question: are not tabs part of the site? Then why are they in a separate file? My idea was to have top-level nodes of site.xml be the tabs, and a skin could decide at which level switch from tabs to navigation. As some pointed out, tabs are not necessarily containers of pages, but links to pages. Hence they have to remain in a separate hierarchy. This does not mean though that they have to be in a separate file. The problem is that we already have a site.xml that needs tabs to be defined outside of the main element, so it would have to change. I would like to get this going later, as it's a big thing to do. So for now making hierarchical tabs possible similarly to what we have now is a very good next step. (we'll have to add the functionality to our skins BTW) In any case, hierarchical tabs should also cater for your need, as you can decide that your skin ignores to show top level tabs (not recommended IMHO). -- Nicola Ken Barozzi nicolaken@apache.org - verba volant, scripta manent - (discussions get forgotten, just code remains) ---------------------------------------------------------------------