forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: Navigation problem
Date Mon, 28 Apr 2003 16:07:16 GMT
On Mon, Apr 28, 2003 at 04:57:02PM +0200, Ines Robbers wrote:
> Hi Jeff,
>  
> > Let me see if I understand.  If we have:
> > 
> > dir1/index.html
> > dir2/index.html
> > somefile.html
> > 
> > You want a link to 'somefile.html' in both index.html files.  
> > Is that right?
> > 
> > Yet you want the HTML in somefile.html to magically change 
> > tabs, depending on what linked to it? :)
> > 
> > I think what you're looking for is HTML frames, so the top 
> > frame, containing the tabs, doesn't change, and only the body 
> > changes.  In Forrest, each page contains a static version of 
> > the menu and tabs.  One page can never have two different tab 
> > settings.
> 
> Yes, I discovered that so that why I did the following:
> 
> I stick my index file into a folder home which is one tab. (hence, I'm
> not using xdocs/index.xml but instead xdocs/home/index.xml)
> Then, in site.xml, I determine a menu for home/index.xml which includes
> links to xdocs/studieninteressierte/index.xml and
> xdocs/studierende/index.xml. 
> There is no tab active anymore - studieninteressierte and studierende is
> not a tab but just a page with an own menu that I defined in site.xml
> too.
> Now, in the menus for studieninteressierte and studierende I have a link
> to studnews/index.xml. When I click on Studien-News I want to get the
> xdocs/studnews/index.xml page but keep the respective menu (either from
> studieninteressierte or studierende). It's a bit like serverside
> includes...

Oh.. how about XInclude'ing the contents of studnews/index.xml into each
page?

I've put a sample webapp that demonstrates XInclude support in Forrest
0.4 at:

http://cvs.apache.org/~jefft/forrest/samples/xinclude-demo.tgz


--Jeff

> Is this really not possible *somehow* - even with a bad trick?
> 
> :-)
> 
> Thanks...
> 
> Ines
> 
> 

Mime
View raw message