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

Velocity template similar to Page Information page

Tuelle January 31, 2018

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
AUG Leaders

Atlassian Community Events