Skip to main content
Skip table of contents

Using the macro "create blog post from template"

The Templates for Blog Posts for Confluence offers you a macro to create a blog post with one click, using a predefined template. It's working in the same way as the Create from Template Macro in Confluence. 

Step by step: Using the macro "Create blog post from template"

  1. Place the macro "Create blog post from template" on your page.

  2. Define the Button text.

  3. Choose the template you want to use.


  4. Enter a title. You may work with dynamic titles too.


  5. Save the macro.


  6. Save the page and use your new fancy button anywhere you like.


Parameters of the Create-Blogpost-From-Template Macro

Name

Description

Type

This is a required field

Default

Button text
buttonLabel


string

(error)


Template name
templateName

Name of the template to create the new blog post from.

enum

(tick)


Title of page to be created
title

You can use @currentDate, @dynamicDate, @spaceName, @spaceKey, @currentPage, @currentUser or @dynamicDate to have those values inserted for you.

string

(error)


Definition of @dynamicDate
dynamicDate

Define how the @dynamicDate parameter is calculated.

Examples

Some examples for the @dynamicDate parameter:

next Monday; first Monday of next month

string

(error)

next Monday

Labels of page to be created
labels

Enter the labels separated by a comma

string

(error)


Space key
spaceKey

Space to create a new blog post in. Leave blank to default to the current space.

spacekey

(error)


templateId


string

(error)


Copy page restrictions
copyRestrictions

Apply the page restrictions from the current page to the blog.

boolean

(error)

false







JavaScript errors detected

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

If this problem persists, please contact our support.