Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,228
Community Members
 
Community Events
176
Community Groups

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

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

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

Atlassian Community Events