×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

Add page templates

Thomas Walker

Thomas Walker Last update: Oct 17, 2017

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

<!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.

2x2.11
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok