It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Velocity template similar to Page Information page

Hi,

I want to write a plugin that allows to configure some page related parameters. I have added a web item "Add Configuration" to the tool menu and also an xwork action that opens a velocity template. The page to be displayed should look similar to the "Page Information" page. The boxes will be replaced by my UI, but I want to have the same information at the top (title, View Page link, etc.). Is there a smart to keep these elements? Right now my basic template look like below, but the elements got lost. Do I have to replicate them all by hand?

Thanks!

<html>
<head>
<title>$generalUtil.htmlEncode($pageTitle)</title>
<meta name="decorator" content="atl.general"/>
#requireResource("confluence.web.resources:aui-forms")
</head>
#applyDecorator("root")
#decoratorParam("helper" $action.helper)

#applyDecorator ("root")
#decoratorParam ("context" "page")

<body>
<div class="pagecontent">
<p>Insert your input form here.</p>
</div>
</body>
#end
#end
</html>

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Agile

On-demand: Fireside chat with Atlassian on scaling agile organizations

Scaling an agile organization and setting it up for success over the long term is a hard thing to do. We hear a common set of questions from customers all the time, questions like: Can agile scal...

124 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you