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

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

Master the art of thinking big, working small: A conversation with John Cutler

Hello all! It has been 20 years since the agile manifesto was introduced, and closer to 40 years since software development began moving away from a waterfall-type approach. While many teams have ...

1,417 views 11 27
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