-
1. Re: add submenu to menu structure
slaboure Feb 5, 2004 3:45 AM (in response to clnukes)Yes, take a look at the ImpactMenuTheme, it is the one used on http://www.jboss.com/ and http://partner.jboss.com/
the way it works is that you can have an implicit menu definition for each page "directory" named _menu i.e.
/services/_menu
/services/training/_menu
etc. -
2. Re: add submenu to menu structure
clnukes Feb 5, 2004 8:50 AM (in response to clnukes)Thanks for that hint.
But where do I get the ImpactMenuTheme?
I have installed a Snapshot from nukes and there I don't have the ImpactMenuTheme. -
3. Re: add submenu to menu structure
mcscottmc Feb 5, 2004 5:23 PM (in response to clnukes)Also, don't be afraid to write your own menu block. That is what I did. I just disabled the core MenuBlock and deployed mine in its place. The core MenuBlock code is very readable and I was able to mimic its overall behavior and tweak my version to do some things that I needed.
-Scott -
4. Re: add submenu to menu structure
clnukes Feb 6, 2004 12:48 AM (in response to clnukes)Hi Scott,
Did you change MenuBlock so that it contains submenu(s)? I already had a look at the MenuBlock code but as a beginner with nukes I'm not so sure about what to change. Is it possible to have a look at your changes?
Do you have your modified MenuBlock on a site accessible from the net so that I could see how it looks? -
5. Re: add submenu to menu structure
slaboure Feb 6, 2004 2:28 AM (in response to clnukes)you should check org.jboss.website.themes.impact.ImpactMenuTheme in the jboss sub-module of nukes. In fact, it is in the nukes-website module.
To see the result, go on http://partner.jboss.com for example and click on menu entries. Depending on where you click, you may see a new row of sub-menu entries appear.
Cheers,
sacha -
6. Re: add submenu to menu structure
pukes Feb 6, 2004 3:12 PM (in response to clnukes)Hi Sacha,
it's nice to see it working on jboss.org, but I cannot find the ImpactMenuTheme neither in jboss-3.2.3_nukes-1.0.0RC1.zip nor in the daily snapshot nor in a cvs checked out version. The only themes I can find are extralight, imagic, invaders, seabreeze.
Is there any good documentation where to find/put the class/html definitions?
Greetings,
Claudia -
7. Re: add submenu to menu structure
mcscottmc Feb 7, 2004 1:57 PM (in response to clnukes)clnukes:
I might have been confused by your first post. I wrote a custom MenuBlock, which is a block that appears on the left side of the site (jboss.org's MenuBlock contains a Home link and 3 modules/ops: Logout, Forums, and My Account). The Impact theme seems to have submenus across the top. In other words, it is part of the theme, not a Block. I can't find the Impact theme in the source distribution, either.
As far as the MenuBlock, I did not actually edit the Jboss code (want to keep my distribution clean). Instead I used it as an example and just wrote my own Block from scratch. I could send you my code but it would not really help you any better than looking at the MenuBlock. My code is pretty specific to my app. If it was more general-purpose then I would have maybe submitted it to the project.
-Scott -
8. Re: add submenu to menu structure
jae77 Feb 7, 2004 3:24 PM (in response to clnukes)julien is going to have to confirm this, but i'm taking a wild guess that the Impact Theme is exclusive to the jboss site.
-
9. Re: add submenu to menu structure
jae77 Feb 7, 2004 3:27 PM (in response to clnukes)ok - after a quick poke around in cvs, i found the impact theme. it is checked in under the nukes-website directory.
-
10. Re: add submenu to menu structure
clnukes Feb 9, 2004 8:56 AM (in response to clnukes)with the following checkout commad, as describe on your website
cvs -d :pserver:anonymous@cvs.jboss.sourceforge.net:/cvsroot/jboss co nukes
I didn't get the directory nukes-website.
Is the Impact Theme exclusive to the jboss site? -
11. Re: add submenu to menu structure
mcscottmc Feb 9, 2004 9:08 AM (in response to clnukes)clnukes:
There is a CVS module called nukes-website that is not under the main nukes branch. You should probably be able to check it out by typing
cvs -d :pserver:anonymous@cvs.jboss.sourceforge.net:/cvsroot/jboss co nukes-website
Or you can browse through the source by going to
http://cvs.sourceforge.net/viewcvs.py/jboss/nukes-website/
-Scott -
12. Re: add submenu to menu structure
jae77 Feb 9, 2004 9:08 AM (in response to clnukes)the nukes-website isn't part of the nukes alias, you have to check it out seperately.
cvs -d :pserver:anonymous@cvs.jboss.sourceforge.net:/cvsroot/jboss co nukes-website