12 Replies Latest reply on Feb 9, 2004 9:08 AM by jae77

    add submenu to menu structure

    clnukes

      Is it possible to add submenus to the menu structure using nukes?
      How?

        • 1. Re: add submenu to menu structure
          slaboure

          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

            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

              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

                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

                  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

                    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

                      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

                        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

                          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

                            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

                              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

                                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