Re: fr.netbeans.org

Jack Catchpoole <[email protected]> Tue, 29 Jun 2004 16:08:05 +0200
Newsgroups gmane.comp.java.netbeans.webteam
Message-ID <[email protected]>
Vincent Brabant wrote:

> I say version 0.1 because the left panel is static.
> But I planned a dynamic one, based upon javascript.
> Each file will have a specific meta tag
> the left_panel.html will contains javascript that will check the value 
> of the specific meta tag and then display the corresponding html code.

Actually, while I was working on the redesign, I think I came
up with a simple soloution for dynamic navigation on module
websites, on a per-directory basis.

The root of the problem was that Webmacro cannot tell us the
current directory, or file.  But we can use Javascript to find
that, something like

window.location.pathname

etc.  So set some JS variable with the directory name, then
tell Webmacro to include a file like :

$current_dir/left_nav.inc

That way each directory can have it's own navigation.  So,
fr/www/left_nav.inc can looks like :

Foo
 - Status
 - SubModules
 - Members

click "Submodules", and see page fr/www/dir1/index.html, and
fr/www/dir1/left_nav.inc looks like :

 Foo
 - Status
 - <emphasis>SubModules</emphasis>
   - Bar
   - Woo
   - Dip
 - Members

I have not tested this, but I think it should work.


-- 
Jack Catchpoole
NetBeans/Sun Microsystems
http://www.netbeans.org/