forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <cle...@medata.com>
Subject 1st tab='corporate site' 2nd tab='docs/'
Date Fri, 10 Sep 2004 17:34:31 GMT
I'm building documentation using OpenOffice.org (cool!), and I want to 
have the Documentation tab be the 2nd tab, but the 1st tab go to my 
corporate web site.

The forrest site I'm building is actually, the 2nd tab, and the first 
tab contains a link to the current www.medata.com (which *cough!* isn't 
built by forrest but is hand-coded :-}). I also want to have links to 
various spots on the corporate site (which work[!] using 'ext:*' 
links)!

How do I do this?

  ____  _____________
|Home||Documentation|

Home = ext:medata
Documentation = docs/index.html

Here's my tabs.xml file

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

   <!-- The rules for tabs are:
     @dir will always have '/@indexfile' added.
     @indexfile gets appended to @dir if the tab is selected. Defaults 
to 'index.html'
     @href is not modified unless it is root-relative and obviously 
specifies a
     directory (ends in '/'), in which case /index.html will be added
     If @id's are present, site.xml entries with a matching @tab will be 
in that tab.

    Tabs can be embedded to a depth of two. The second level of tabs 
will only
     be displayed when their parent tab is selected.
   -->

   <tab id="ext:medata" label="Home" dir="" indexfile="index.html"/>
   <tab id="docs" label="Documentation" dir="docs" 
indexfile="index.html">
     <tab id="xmltodb" label="xmltodb" dir="docs" 
indexfile="xmltodb_docs.html"/>
   </tab>
   <!-- Add new tabs here, eg:
   <tab label="How-Tos" dir="community/howto/"/>
   <tab label="XML Site" dir="xml-site/"/>
   -->

</tabs>

and here's the content of site.xml:

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

   <home label="Home">
     <home-index label="Medata.com" href="ext:medata" 
description="Medata Home page" />
     <home-partners label="Partners" href="ext:partners" 
description="Medata Partners page" />
     <home-products label="Products" href="ext:products" 
description="Medata Products page" />
     <home-resources label="Resources" href="ext:resources" 
description="Medata Resources page" />
     <home-services label="Services" href="ext:services" 
description="Medata Services page" />
     <home-support label="Support" href="ext:support" 
description="Medata Support page" />
   </home>

   <docs label="Docs">
     <xmltodb label="xmltodb" href="xmltodb_docs.html" 
description="XMLToDB Documentation" />
   </docs>

   <!--
   <all label="All">
     <whole_site_html label="Whole Site HTML" href="site.html"/>
     <whole_site_pdf label="Whole Site PDF" href="site.pdf"/>
   </all>
   -->

   <external-refs>
     <medata href="http://www.medata.com/">
       <products href="products/index.html"/>
       <partners href="partners/index.html"/>
       <services href="services/index.html"/>
       <about href="about/index.html"/>
       <support href="support/index.html"/>
       <resources href="resources/index.html"/>
       <docs href="docs/index.html"/>
     </medata>
     <forrest href="http://forrest.apache.org/">
       <validation href="docs/validation.html"/>
       <webapp href="docs/your-project.html#webapp"/>
       <dtd-docs href="docs/dtd-docs.html"/>
     </forrest>
     <cocoon href="http://cocoon.apache.org/"/>
     <xml.apache.org href="http://xml.apache.org/"/>
   </external-refs>

</site>


Mime
View raw message