Skip to main content
Skip table of contents

Add page templates

You can use your default page.vm file to adapt your template to your needs. 

If you want to expand the usage of templates beyond your page.vm, you can create another template for different pages. By using the page properties macro with the template property, you can insert the filename of the template. In the example below, another file called customer.vm is created.

In your new velocity template (vm) file, you can enter static content, content from Confluence, or a mix of both.

customer.vm

XML
<!DOCTYPE html>
<html lang="en">

<head>
    <title>$page.title</title>
</head>

<body>
    <header>
		<span class="title">Your Company Name</span>
	</header>
	<main>
		<h1>$page.title</h1>
		<div class="content">
    	    $page.content
  	  	</div>  
	</main>	
</body>

</html>

Next steps

To learn how to better re-use parts of your templates, take a look at Individual templates for pages.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.