You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matt Wheeler <Wh...@ldschurch.org> on 2006/07/22 01:49:58 UTC

Maven site collapsable menus

I have been trying to create expandable/collapsable menus on my maven generated
site, but have been unable to do so.  I have not used a navigation.xml file, as
recommended in the documentation at http://maven.apache.org/site.html, but have
just put the menu in my site.xml.  I have tried the following, but with very
weird results - normally, when I click on the bottom link of the top collapsable
menu, the bottom menu disappears.
 
My site.xml looks something like:
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<site>
  <bannerLeft>
    <name>Stack</name>
    <src>http://blah/blah.gif</src>
    <href>http://blah.org/</href>
  </bannerLeft>
  <bannerRight>
    <src>http://blah/blah/blahblah.jpg</src>
  </bannerRight>
  <body>
 
    <menu name="Stack">
     <item name="Projects Used" href="/" collapse="true">
      <item name="Maven" href="maven.html" collapse="true"/>
   <item name="JPA" href="jpa.html" collapse="true"/>
   <item name="Spring Framework" href="spring.html" collapse="true"/>
   <item name="JSF-RI" href="jsf.html" collapse="true"/>
   <item name="Facelets" href="facelets.html" collapse="true"/>
   <item name="Acegi Security" href="acegi.html" collapse="true"/>
  </item>
  <item name="Internal Resources" href="/" collapse="true">
      <item name="Template Library" href="ui.html" collapse="true"/>
      <item name="Downloads" href="downloads.html" collapse="true"/>
     </item>
    </menu>
    
    ${modules}
 
    ${reports}
 
  </body>
</site>
 
In short, I have three main questions:
1.Is there a bug in the maven site collapse/expand stuff, or am I just doing
something wrong?
2.Do I have to specify a valid value in the surrounding item's href, or since I
want it only to expand or collapse, and not display a different page when I
click on say Projects Used, or Internal Resources, in my example, would my tag
<item name="Projects Used" href="/"> be valid?
3.Do you have to specify an expand and collapse attribute, if you want it to do
both?
 
Thanks.  I appreciate very much how sweet maven is.  I don't think the time
savings we have gained by using maven is even calculable, it is so large, and
this automatic site generation is just the icing on the cake.
 
Matt W.

------------------------------------------------------------------------------

 
NOTICE: This email message is for the sole use of the
 intended recipient(s) and may contain confidential and
 privileged information. Any unauthorized review, use,
 disclosure or distribution is prohibited. If you are not the
 intended recipient, please contact the sender by reply email
 and destroy all copies of the original message.

------------------------------------------------------------------------------