You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julian Wood <wo...@ucalgary.ca> on 2006/06/17 09:04:18 UTC
Multimodule site problem
Anyone know how to keep a common menu in a multi-module site? It
seems easy enough, but it doesn't work quite right in the ways that
I've tried. For instance,
<menu name="Dictateur">
<item name="Introduction" href="/index.html"/>
<item name="Install" href="/install.html"/>
<item name="Downloads" href="download.html"/>
</menu>
is defined in the parent site.xml. There are no site.xml's for any of
the modules (I know - if I define one, I can get around this problem
by creating relative links, but it would be all duplicate info). This
menu works fine as long as I'm at the parent level of the site. If I
navigate to a module, the menu is still there, but the links are all
relative to the module now, rather than to the parent where it was
defined, so of course are not found. I've tried with and without a
slash, as well as using the inherit attribute, and they all give the
same result. Is there any way to make this menu work properly in the
module sites (other than creating a module-specific site.xml)?
mvn site:stage -DstagingDirectory=/tmp
Thanks,
J
--
Julian Wood <wo...@ucalgary.ca>
Software Engineer
Teaching & Learning Centre
University of Calgary
http://tlc.ucalgary.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Multimodule site problem
Posted by Julian Wood <wo...@ucalgary.ca>.
So I'm going to take it then that the answer is no - to prevent a
broken site, when built from the parent, you must supply each module
with it's own site.xml.
Or is this a bug?
Thanks,
J
On 17-Jun-06, at 1:04 AM, Julian Wood wrote:
> Anyone know how to keep a common menu in a multi-module site? It
> seems easy enough, but it doesn't work quite right in the ways that
> I've tried. For instance,
>
> <menu name="Dictateur">
> <item name="Introduction" href="/index.html"/>
> <item name="Install" href="/install.html"/>
> <item name="Downloads" href="download.html"/>
> </menu>
>
> is defined in the parent site.xml. There are no site.xml's for any
> of the modules (I know - if I define one, I can get around this
> problem by creating relative links, but it would be all duplicate
> info). This menu works fine as long as I'm at the parent level of
> the site. If I navigate to a module, the menu is still there, but
> the links are all relative to the module now, rather than to the
> parent where it was defined, so of course are not found. I've tried
> with and without a slash, as well as using the inherit attribute,
> and they all give the same result. Is there any way to make this
> menu work properly in the module sites (other than creating a
> module-specific site.xml)?
>
> mvn site:stage -DstagingDirectory=/tmp
--
Julian Wood <wo...@ucalgary.ca>
Software Engineer
Teaching & Learning Centre
University of Calgary
http://tlc.ucalgary.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org