forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <johannes.schae...@uidesign.de>
Subject Re: Two unknown problems with my site.xml/tabs.xml
Date Fri, 07 Jan 2005 08:48:18 GMT
Andy,
the "id" attribute in tab.xml and the "tab" attribute in
site.xml must match to get the tabs right, see:
  http://forrest.apache.org/docs/linking.html#menu_generation
No need to specify "tab" for all entries in site.xml.

Also, pay attention to the href and dir attributes,
esp. "/" at beginning/end. Put some dummy files in your
project to start with, I used the index.html from
'forrest seed' to see if your files work (renamed the
samples folder to "docs".

So, this works:
<tabs>
   <tab id="home" label="Home"dir="" indexfile="index.html"/>
   <tab id="docs" label="Documentation" dir="docs" />
</tabs>
-- 
<site label="Simple" href=""
xmlns="http://apache.org/forrest/linkmap/1.0" tab="">
   <about label="About" tab="home">
     <about1 label="Overview" href="index.html"/>
     <about2 label="item 2" href="nocontent.html"/>
     <about3 label="item 3" href="nocontent.html"/>
   </about>

   <docstuff label="Doc Tab" href="docs/" tab="docs">
     <doc1 label="Overview" href="index.html"/>
     <doc2 label="Doc 2" href="nocontent.html" />
     <doc3 label="Doc 3" href="nocontent.html" />
   </docstuff>
</site>

Just another user,
Johannes

Andy J wrote:
> I have two problems: 
> 1) all my menu items are appearing under all tabs
> 2) when a different tab is selected, the content page changes (to the
> correct indexfile), but the color of the "active tab" does not change
> 
> I've tried to minimize the site.xml and tabs.xml in the hopes that
> someone will be able to point out the problem.  Here's a simple
> site.xml that has entries on two tabs:
> 
> <site label="Simple" href=""
> xmlns="http://apache.org/forrest/linkmap/1.0" tab="home">
>   <about label="About" tab="home">
>     <about1 label="item 1" href="nocontent.html"/>
>     <about2 label="item 2" href="nocontent.html"/>
>     <about3 label="item 3" href="nocontent.html"/>
>   </about>
>   
>   <links label="Links" tab="home">
>     <link1 label="link 1" href="http://somelink.html/"/>
>     <link2 label="link 2" href="http://anotherlink.html"/>
>     <link3 label="link 3" href="http://link3.html" />
>   </links>
> 
>   <docstuff label="Doc Tab" href="docs/"

  tab="docs">   # this should be tab="docstuff"

>     <doc1 label="Doc 1" href="/nocontent.html" tab="docs"/>
>     <doc2 label="Doc 2" href="/nocontent.html" tab="docs"/>
>     <doc3 label="Doc 3" href="/nocontent.html" tab="docs"/>
>   </docstuff>
> </site>
> 
> And the tabs.xml:
> <tabs>
>   <tab id="" label="Home" dir="/" indexfile="index.html"/>
>   <tab id="docstuff" label="Documentation" dir="docs"/>
> </tabs>
> 
> I have not been able to get this.  The default seed project is too
> simplistic since it all its items are all tabs.  The documentation (as
> I noted in another post) does not seem to reflect the way it's working
> for me.
> 
> Any help would be appreciated!  If I ever these things resolved I'll
> write them up and contribute them back to the project.  Please help me
> get rolling . . !
> 
> - Andy
> 
> 


-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 
Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * 
Lehrer-Götz-Weg 11 * D-81825 München
www.uidesign.de

Buch "User Interface Tuning" von Joachim Machate & Michael 
Burmester
www.user-interface-tuning.de

Attraktivität von interaktiven Produkten messen mit
www.attrakdiff.de

Mime
View raw message