Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 94313 invoked from network); 16 Jun 2005 09:43:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 09:43:43 -0000 Received: (qmail 87035 invoked by uid 500); 16 Jun 2005 09:43:43 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 86991 invoked by uid 500); 16 Jun 2005 09:43:42 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Forrest Developers List" List-Id: Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 86953 invoked by uid 99); 16 Jun 2005 09:43:42 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 16 Jun 2005 02:43:37 -0700 Received: (qmail 94219 invoked by uid 65534); 16 Jun 2005 09:43:24 -0000 Message-ID: <20050616094324.94218.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r190889 - /forrest/trunk/site-author/content/xdocs/docs_0_70/linking.xml Date: Thu, 16 Jun 2005 09:43:23 -0000 To: svn@forrest.apache.org From: crossley@apache.org X-Mailer: svnmailer-1.0.0-dev X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: crossley Date: Thu Jun 16 02:43:21 2005 New Revision: 190889 URL: http://svn.apache.org/viewcvs?rev=3D190889&view=3Drev Log: Add some tips about configuring the interaction between tabs.xml and site.x= ml Modified: forrest/trunk/site-author/content/xdocs/docs_0_70/linking.xml Modified: forrest/trunk/site-author/content/xdocs/docs_0_70/linking.xml URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/= docs_0_70/linking.xml?rev=3D190889&r1=3D190888&r2=3D190889&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- forrest/trunk/site-author/content/xdocs/docs_0_70/linking.xml (original) +++ forrest/trunk/site-author/content/xdocs/docs_0_70/linking.xml Thu Jun 1= 6 02:43:21 2005 @@ -19,6 +19,7 @@ index.xml'> todo.xml'> site.xml'> +tabs.xml'> ]> =20 @@ -295,11 +296,58 @@ Selecting the current tab

The tab selection algorithm is quite simple: the tab with the - "id" which matches that of the current site.x= ml - node is "selected". If you experience any problems, try to add a=20 - <foo label=3D"Foo" href=3D"index.html"/> to t= he - site.xml configuration. + "id" which matches that of the current &s; + node is "selected". However the interaction of &t; and &s; + while powerful, can be complex to establish.

+ + +
+ Configuring the interaction between tabs.xml and site.xml</= title> + <p> + This is a collection of tips to assist with getting your menus a= nd tabs + to properly display. + </p> + <ul> + <li> + View your site's=20 + <link href=3D"../abs-menulinks">abs-menulinks</link> pipeline = in a + browser. This is part of the internal Cocoon machinery, but li= ke + other sitemap resources, it is useful to view them to assist w= ith + debugging. + </li> + <li> + The Forrest website also accompanies your software release + in the <code>site-author</code> directory, so + inspect its &t; and &s; to see how it is done. Also see the + 'forrest seed site' example. It is not as complex as the Forre= st website. + </li> + <li> + When you are fiddling with your attributes, change one thing a= t a time + and document what you have changed.</li> + <li> + The value of the tab @id attribute cannot begin with a digit. + Likewise, element names in &t; and &s; cannot begin with a dig= it. + </li> + <li> + Add label attributes to &s; elements to make the menus show. + With nested elements in &s; if the outer element does not have= a label + attribute then the inner elements will not be displayed. + </li> + <li> + To cause tabs and menu items to be highlighted, there need to = be + corresponding elements in &s; that have href attributes which = match + the relevant path. + </li> + <li> + When the tab points to a directory, then to make the tab highl= ighted + when selected, you need an element which matches index.html wi= thin the + group of elements that define the menus for this tab in the &s; + file. That element can be without a label attribute, so that i= t doesn't + display as a menu item. However doing that causes that tab's m= enus + to be collapsed. + </li> + </ul> </section> =20 </section>