Templates for Blog Posts for Confluence
Breadcrumbs

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.

    Screen Shot 2018-06-06 at 09.50.44.png


  2. Define the Button text.

  3. Choose the template you want to use.

    image2017-6-14 12_52_40.png


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

    image2017-6-14 12_53_52.png


  5. Save the macro.

    image2017-6-14 12_56_8.png


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

    image2017-6-14 12_58_7.png




Parameters of the Create-Blogpost-From-Template Macro

Name

Description

Type

This is a required field

Default

Button text
buttonLabel


string

cross mark


Template name
templateName

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

enum

check mark


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

cross mark


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

cross mark

next Monday

Labels of page to be created
labels

Enter the labels separated by a comma

string

cross mark


Space key
spaceKey

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

spacekey

cross mark


templateId


string

cross mark


Copy page restrictions
copyRestrictions

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

boolean

cross mark

false