Hi,
I would like to implement a Menu with the combination of <web-item> and <web-section>. and I am able to add the Menu on Top Nav bar (system.top.navigation.bar) location using below sample code.
However my requirement is to implement submenu for each Menu Item. Please suggest me to implement Submenu feature using JIRA Plugin development.
Ex:
<web-section key="my-links-section" name="My Links Main Section" location="my-links-link" weight="10" /> <web-item key="my-links-link" name="Links on My Links Main Section" section="system.top.navigation.bar" weight="47"> <label>Menu 1</label> <link linkId="my-links-link">google.com</link> </web-item> <web-item key="website-link" name="Menu 2" section="my-links-link/my-links-section" weight="10"> <label>Website</label> <link linkId="website-link">google.com</link> </web-item>
Thank you in advance.
Sreedhar
Community moderators have prevented the ability to post new answers.
You need to seection with location pointing to linkId of the top web-item and all submenus should have section pointing to linkId/secttionKey:
<!-- web item -->
<web-item key="someKey0" section="system.top.navigation.bar" weight="100">
<label key="someLabel" />
<link linkId="someKeyLinkId" />
</web-item>
<web-section key="someKey1" location="someKeyLinkId" weight="10">
<label key="section1Label" /> <!--- If you really need one --->
</web-section>
<web-item key="someKey11" section="someKeyLinkId/someKey1
weight="10">
<label key="menu11" />
<link>/yourURLPath11</link>
</web-item>
<web-item key="someKey12" section="someKeyLinkId/someKey1
weight="10">
<label key="menu12" />
<link>/yourURLPath12</link>
</web-item>
Thank you Volodymyr - it resolved my issue and I am able to add submenus as suggested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.