Hi All,
What’'s the trick to adding a sidebar item to an existing tab via the plugin.xml file?
Thanks,
Ryan
Hi All,
What’'s the trick to adding a sidebar item to an existing tab via the plugin.xml file?
Thanks,
Ryan
Just use the same tab ID and then a new sidebar item under that. So, it would be something like:
<tab id="tab-server">
<sidebar id="sidebar-server-manager">
<item id="new" name="new item"
url="new.jsp"
description="new test" />
</sidebar>
</tab>
Notice that I only include the id attribute in the tab and sidebar elements. This is so that the other attributes aren’'t overridden with new values.
-Matt
Thanks, Matt. I thought I had done just what you suggested but I guess not.
It’‘s always possible that something is broken. If you can’'t make it work, let me know.
-Matt
It looks like something might not be working properly. Whatever I set the name attribute to in the item element is what appears on the parent sidebar. So, in your example above, the text of the sidebar with the id of “sidebar-server-manager” is set to “new test” and no new item is created underneath it.
Thanks,
Ryan