Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

This page explains how to use Live templates, a feature that allows you to create new pages with similar layouts and content.

On this page:

Table of Contents
minLevel1
maxLevel6
outlinefalse

...

style

...

disc

...

type

...

Overview

Ever had to create new pages where they were all the same layout and had similar content?

list
printable

...

true
Image Modified

You could create a global

...

or

...

space template to make the job easier, but if you had to make a minor edit

...

, it wouldn't be reflected in all the pages that used the same global or space template. You'd have to edit each page one by one!

Scaffolding can make your life easier with the Live Template macro.

Info

Live Templates are dynamic templates that you only need to edit once

...

. The changes are reflected automatically across all the pages that use that template

...

, with no extra action required.

Excerpt
hiddentrue
namevideo

Let's watch this:

Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width400px
urlhttp://youtube.com/watch?v=qpfY6fMWGIs
height300px

Ingredients

Components

Apps

Scaffolding

Macros

Live Template

Guide

  1. create a global or space template with Scaffolding macros.

...

    • Use Confluence templates.

...

    • Or create a normal page.

Info

The macro works with both options.

  1. type {live-template} on an empty page.

...

  1. Edit the Live Template macro.

...

  1. Choose the template type.

...

  1. Enter the name (of the template you created above).

  2. Save

...

  1. the page.

Info

...

Every time you edit the template, the page, or any other page with the Live

...

Template set to that template, it updates automatically.