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,366,948
Community Members
 
Community Events
168
Community Groups

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

Atlassian Community Events