You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2011/08/18 04:31:32 UTC

[jira] Commented: (MSITE-608) aggregating breadcrumb behavior disappears in the presence of a menu in the parent

    [ https://jira.codehaus.org/browse/MSITE-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276316#comment-276316 ] 

Herve Boutemy commented on MSITE-608:
-------------------------------------

I just tested your project, and I don't understand: I don't see any difference when the menu is defined or not (which honestly is a Good Thing: a menu should not have any impact on breadcrumbs).

The child breadcrumbs are always: Maven > Breadcrumb TC Module > About

And they are not wrong: if they lack a breadcrumb to visit the parent, it's not a bug, it's a feature :)
The feature is: when a descriptor defines explicitely some breadcrumb item, no automatic breadcrumb item is added
I found it reading the inheritance code, and it's IMHO logical since it permits you to override automatic breadcrumbs with whatever you want (choose name and href)

[Decoration Model documentation|http://maven.apache.org/doxia/doxia-sitetools/doxia-decoration-model/] needs improvement to explain inheritance

I'll work on it when working on DOXIASITETOOLS-62, since inheritance algorithm will become more flexible, then absolutely needs clear documentation
but before that, if you're able to start something, that would be great


> aggregating breadcrumb behavior disappears in the presence of a menu in the parent
> ----------------------------------------------------------------------------------
>
>                 Key: MSITE-608
>                 URL: https://jira.codehaus.org/browse/MSITE-608
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: multi module
>    Affects Versions: 3.0
>            Reporter: Benson Margulies
>         Attachments: site-breadcrumb-inheritance.jar
>
>
> This may turn out to belong in Doxia. I don't know.
> The attached project consists of an aggregating project and its module. The breadcrumbs in the module are, I claim, wrong -- they lack the breadcrumb to visit the parent.
> If you remove this menu:
> {code}
>  <menu name="tc">
>     <item name="Home" href="index.html"/>
>  </menu>
> {code}
> from the parent's src/site/site.xml, all is well. Once it's here, the parent-level breadcrumb is  omitted.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira