I am trying to add a new menu in the top navigation bar, which shall be filled from different company addons. But when I try to add a new web-section
with some web-item
s to my existing menu they do not appear.
In my addon Jira-Helper with the plugin key com.company.jira.plugin.helper
I have the following menu item in the to navigation bar:
<web-item key="company_top_menu_item"
name="company"
section="system.top.navigation.bar"
weight="999">
<label key="top.menu.name"/>
<link linkId="company_top_menu_link">/secure/Dashboard.jspa</link>
</web-item>
In my addon Report-Plugin with the plugin key com.company.jira.plugin.reporter
I have the following menu sections and items, which I want to add to the already existing menu:
<web-section key="company_top_menu_section"
name="company reporter"
location="company_top_menu_link"
weight="999">
<label key="reporter.name"/>
</web-section>
<web-item key="company_top_menu_config_item_A"
name="report A config"
section="company_top_menu_link/company_top_menu_section"
weight="10">
<label key="reporter.config.reportA.name"/>
<link linkId="config-link">/projects/REP?selectedItem=com.company.reportingpanelA</link>
</web-item>
<web-item key="company_top_menu_config_item_B"
name="report B config"
section="company_top_menu_link/company_top_menu_section"
weight="20">
<label key="reporter.config.reportB.name"/>
<link linkId="config-link">/projects/REP?selectedItem=com.company.reportingpanelA</link>
</web-item>
But neither the web-section
nor the web-item
is showing up. It only works when I put the definition of the main menu item in the top bar into the reporter plugin. But then I have two man menus in my top bar when both plugins have the definition.
Where is my mistake here? How can I add menu items from different plugins to the same top level menu item in the top navigation bar?