Using decorators to show UI elements on custom pages in a Confluence Server plugin

paul.folder April 6, 2018

Hi everyone,

 

I am building a Confluence Server plugin.

I have a custom web item and a custom XWork action.

The web item is located in the Actions menu of a page:

Confluence Web Item.png

 

When I click the web item, it takes me to the view returned by the XWork action. However, I have only gotten the atl.admin and atl.general decorators to work.

Here is the Velocity template:

<!DOCTYPE HTML>
<html>
<head>
<title>Hello World - in title</title>
<meta name="decorator" content="atl.general"/>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>

And the resulting view:

Confluence General Decorator.png

How can I get my custom page to show the Spaces sidebar to the left, the breadcrumb and various interaction options at the top of a page (Share, Like, etc.) and the Comment section at the bottom?

Confluence Missing Decorators.png

I have some experience with developing JIRA plugins where it was relatively simple to get a custom page to show e.g. in the Project Settings. Confluence seems to be a different beast so far.

1 answer

0 votes
Zachary Hayes July 25, 2022

Those sections are web panels, try these as web panels-- atl.page.left.sidebar for the left sidebar, atl.page.metadata.banner for the breadcrumbs, and atl.comments.view.bottom or atl.page.content.footer for the comment section

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events