You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jim Crossley <ji...@crossleys.org> on 2004/02/28 02:44:25 UTC

Merging multiproject nav with xdocs/nav

I hope this hasn't been asked too many times before, but...

Is it possible for me to add some menu items to the navigation
generated by the multiproject plugin?  It appears that my
xdocs/navigation.xml just overwrites (instead of merges) the one
created by multiproject:create-nav.

Thanks,
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Merging multiproject nav with xdocs/nav

Posted by di...@multitask.com.au.
Jim Crossley <ji...@crossleys.org> wrote on 28/02/2004 12:44:25 PM:

> I hope this hasn't been asked too many times before, but...
> 
> Is it possible for me to add some menu items to the navigation
> generated by the multiproject plugin?  It appears that my
> xdocs/navigation.xml just overwrites (instead of merges) the one
> created by multiproject:create-nav.

Your navigation.xml is supposed to be a script, like the one found in the 
multiproject plugin.

e.g.
------------------------------------------------------
<?xml version="1.0" encoding="$encoding"?>

<project name="$pom.name">

  <title>$pom.name</title>

  <body>
    <menu name="Projects">
    #if ($overviewPageCreate == "true" )
      <item name="${overviewPageLinkTitle}" 
href="${overviewPageLink}.html"/>
    #end
    #foreach ($reactorProject in $reactorProjects)
      <item name="$reactorProject.name" 
href="/${aggregateDir}${reactorProject.artifactId}/index.html"/>
    #end
    </menu>

  </body>
</project>
------------------------------------------------------
You can add your own stuff anywhere in the template as per a normal 
navigation.xml
--
dIon Gillard, Multitask Consulting