You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cameron Jones <cm...@gmail.com> on 2007/09/02 21:16:40 UTC

Re: Inherited Site Menu Contexts in Modules

Is there a reason for this? Is the intention of a site to be for the
entire project or just an individual module? I would think that having
the paths auto generated would be a good feature like when there's a
reference to the parent site which is correctly generated as
"../index.html"

Alternatively, is there any way of having this path generated using
another means like property placeholders?

Thanks,
Cam

On 8/31/07, Dennis Lundberg <de...@apache.org> wrote:
> This is the expected behavior.
>
> Cameron Jones wrote:
> > Hi,
> >
> > In my maven project when i generate the site for the parent and all
> > sibling modules the module's inherited menus have default context
> > paths from their deployment location and not the relative path from
> > the parent site. Is this expected behaviour or an issue?
> >
> > For Example:
> >
> > site.xml in parent:
> >
> > ...
> >         <menu name="About" inherit="top">
> >             <item name="About" href="/about.html" />
> >             <item name="FAQ" href="/faq.html" />
> >         </menu>
> > ...
> >
> >
> > Same Generated index.html in both parent AND module:
> >
> > ...
> > <div id="navcolumn">
> >            <h5>About</h5>
> >            <ul>
> >            <li class="none">
> >                     <a href="about.html">About</a>
> >            </li>
> >            <li class="none">
> >                     <a href="faq.html">FAQ</a>
> >           </li>
> > </navcolumn>
> > ...
> >
> >
> > Thanks,
> > Cam
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Inherited Site Menu Contexts in Modules

Posted by Dennis Lundberg <de...@apache.org>.
For links between parent and child modules there are other ways. I can't 
find the page for it right now, but it's
   <menu ref="parent" /> in the child module site.xml
and
   <menu ref="modules" /> in the parent site.xml

Cameron Jones wrote:
> Is there a reason for this? Is the intention of a site to be for the
> entire project or just an individual module? I would think that having
> the paths auto generated would be a good feature like when there's a
> reference to the parent site which is correctly generated as
> "../index.html"
> 
> Alternatively, is there any way of having this path generated using
> another means like property placeholders?
> 
> Thanks,
> Cam
> 
> On 8/31/07, Dennis Lundberg <de...@apache.org> wrote:
>> This is the expected behavior.
>>
>> Cameron Jones wrote:
>>> Hi,
>>>
>>> In my maven project when i generate the site for the parent and all
>>> sibling modules the module's inherited menus have default context
>>> paths from their deployment location and not the relative path from
>>> the parent site. Is this expected behaviour or an issue?
>>>
>>> For Example:
>>>
>>> site.xml in parent:
>>>
>>> ...
>>>         <menu name="About" inherit="top">
>>>             <item name="About" href="/about.html" />
>>>             <item name="FAQ" href="/faq.html" />
>>>         </menu>
>>> ...
>>>
>>>
>>> Same Generated index.html in both parent AND module:
>>>
>>> ...
>>> <div id="navcolumn">
>>>            <h5>About</h5>
>>>            <ul>
>>>            <li class="none">
>>>                     <a href="about.html">About</a>
>>>            </li>
>>>            <li class="none">
>>>                     <a href="faq.html">FAQ</a>
>>>           </li>
>>> </navcolumn>
>>> ...
>>>
>>>
>>> Thanks,
>>> Cam
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> --
>> Dennis Lundberg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Dennis Lundberg

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