Writing a mixed Space screen
This tutorial applies to Confluence 5.0.
Level of experience:
This is an advanced tutorial. You need to understand the Confluence Actions, templates and decorators.
This tutorial will explain how to display a Space screen in both situations:
|Doc Theme||Default Theme in Confluence 5.0|
|Displayed as a top-level Space tab||Displayed as a Space Tool|
We call it a mixed screen because:
- In the Doc Theme, top-level tabs should display types of content, like Pages, Blog or Mail.
- If you want to display settings for your add-on, they should appear under the Space Admin tab.
However we understand it makes sense for add-on developers to mix those two patterns.
The example below is available on the following BitBucket repository:
As for the two previous tutorials, one web-item is required for each place:
An XWork definition will allow you to display the action:
Use two decorators
The action is available at http://localhost:1990/confluence/plugins/space-links/mixed.action?key=ds . The two images of the introduction show how the action displays.