You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Clay Leeds <cl...@medata.com> on 2004/09/10 19:34:31 UTC

1st tab='corporate site' 2nd tab='docs/'

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>


Re: 1st tab='corporate site' 2nd tab='docs/'

Posted by Thorsten Scherler <th...@apache.org>.
Thorsten Scherler wrote:
> I just tried with pelt.
> Clay you pointed me to a bug in pelt.
> Cheers, dude!
> 
> http://issues.cocoondev.org/browse/FOR-290
> 
> I am working on it!
> 

It is fixed!

thorsten

Re: 1st tab='corporate site' 2nd tab='docs/'

Posted by Thorsten Scherler <th...@apache.org>.
I just tried with pelt.
Clay you pointed me to a bug in pelt.
Cheers, dude!

http://issues.cocoondev.org/browse/FOR-290

I am working on it!

King regards
thorsten

Thorsten Scherler wrote:
> What skin are you using?
> 
> thorsten
> 
> Clay Leeds wrote:
> 
>> UPDATE:
>> I solved this using the information on this page[1] (sorry for the 
>> wasted bandwidth!). I'm still having problems with the tabs, but I 
>> think I'm close to resolving the problem.
>>
>> Web Maestro Clay
>>
>> [1]
>> http://forrest.apache.org/docs/linking.html#tabs-external
>>
> 


Re: 1st tab='corporate site' 2nd tab='docs/'

Posted by Thorsten Scherler <th...@apache.org>.
What skin are you using?

thorsten

Clay Leeds wrote:
> UPDATE:
> I solved this using the information on this page[1] (sorry for the 
> wasted bandwidth!). I'm still having problems with the tabs, but I think 
> I'm close to resolving the problem.
> 
> Web Maestro Clay
> 
> [1]
> http://forrest.apache.org/docs/linking.html#tabs-external
>

Re: 1st tab='corporate site' 2nd tab='docs/'

Posted by Clay Leeds <cl...@medata.com>.
UPDATE:
I solved this using the information on this page[1] (sorry for the 
wasted bandwidth!). I'm still having problems with the tabs, but I 
think I'm close to resolving the problem.

Web Maestro Clay

[1]
http://forrest.apache.org/docs/linking.html#tabs-external

On Sep 10, 2004, at 10:34 AM, Clay Leeds wrote:
> 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>
>