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

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png


Template name
templateName

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

enum

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/check.png


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

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png


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

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

next Monday

Labels of page to be created
labels

Enter the labels separated by a comma

string

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png


Space key
spaceKey

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

spacekey

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png


templateId


string

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png


Copy page restrictions
copyRestrictions

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

boolean

https://communardo.atlassian.net/wiki/s/559262338/6452/6115fb25c37f24a5c84be0cbd66bb60564dc30eb/_/images/icons/emoticons/error.png

false