Databases Reference
In-Depth Information
location menus can be difficult to find if you are not familiar with the
source code of Confluence itself. More location menus are documented on
https://developer.atlassian.com/display/CONFDEV/Web+UI+Modules .
A few that are commonly used are:
Location
Description
system.profile
The tabs above the user profile view.
system.user
The drop-down menu when you click the user avatar in the
top-right corner.
system.admin
The links in the left-hand side menu in the Administrator
Console.
The label element is the only required element in the web-section plugin. It looks up
for the label in your plugin properties file and uses it in the menu section header.
<label key="plugin.menu.section" />
You can add one or more conditions to a web panel or item. The implementation of
these conditions must return true in order for the section to display in the interface.
This can be used the make sure the links are only available for administrators.
<condition class="com.atlassian.confluence.plugin.descriptor.web.
conditions.SystemAdministratorCondition" />
Web Items
With Web Items you can add links to Confluence via your plugin. If you build
a screen you probably want users to find it; adding a web items to your plugin
should make this possible.
The module descriptor
A common Web Item will be configured similar to this:
<web-item key="config-link" name="Plugin Configuration"
section="system.admin/plugin-admin-section" weight="10">
<label key="plugin.menu.config" />
<linklinkId="config-link">/plugins/config/alpha.action</link>
<icon height="16" width="16">
<link>/images/icons/config.gif</link>
</icon>
</web-item>
Search WWH ::




Custom Search