[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The blog-calendar macro is

Excerpt

used to display a calendar view of available blogposts.

...

Usage

Code Block

{blog-calendar}

Parameters

...

Property

Required

Default

Notes

Theme Panels Only

Ver

space

(error)

@current

The space whose posts should be shown

 

3.3

date

(error)

@context

the month which should be shown (@context/@today/@creation/@modified/MMyyy)

 

3.3

Examples

Basic Use

...

Add

...

the

...

{blog-calendar}

...

macro

...

to

...

a

...

page

...

or

...

panel

...

where

...

you

...

want

...

to

...

display

...

a

...

calendar

...

of

...

blog

...

posts

...

Code Block
{blog-calendar}

...

Which

...

gives:

...

Image Added

This defaults to the @context date scheme which means that when you are viewing a blogpost then the creation date will be used, when you are viewing the blog archive then the relevant month will be used for the date you are viewing, and when used anywhere else the current date will be used.

 

Display blog posts for the date the page was created

unmigrated-wiki-markup

 

To

display

a

calendar

of

blog

posts

for

the

month

that

the

currently

viewed

page

was

created

{
Code Block
}
{blog-calendar:date=@creation}
{code}

Which gives:
{blog-calendar:date=@creation}

Similarly you can display a list of posts for the month that this page was last modifed

{code}

Similarly you can display a list of posts for the month that this page was last modifed

Code Block
{blog-calendar:date=@modified}
{code}

Which gives:
{blog-calendar:date=@modified}

 

 

CSS Customisation

To follow

...