Writing an space index page for a content type
This tutorial applies to Confluence 5.0.
Level of experience:
If your plugin provides another content type than Pages or Blog, it is probably useful to build an index page for it.
The example below is available on the following BitBucket repository:
You need to create a Confluence plugin and update the version of Confluence to 5.0-beta5.
Declaring the link
The link in the sidebar can be declared in atlassian-plugin.xml:
Creating an action
The link declared above needs to lead to the index page:
Writing the index page
You can see the link in the sidebar next to Pages and Blog, and the index page on the right.
Known Bug: Gray header
The header is gray on Confluence 5.0-beta5. If you use #decoratorParam("mode" "collector") in the template, the header will automatically come with the right color in Confluence 5.0. If you need to use another mode, add this declaration to your css: