Access Keys:
Skip to content (Access Key - 0)

blog-calendar macro

{blog-calendar} Macro

Under Consruction

Description

The blog-calendar macro is used to display a calendar view of available blogposts....

Usage

{blog-calendar}

Parameters

the "Ver" column shows which version of Theme Builder the parameter became available in.

Property Required Default Notes Theme Panels Only Ver
space @current The space whose posts should be shown   3.3
date @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

{blog-calendar}

Which gives:

<< May 2012  
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

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

To display a calendar of blog posts for the month that the currently viewed page was created

{blog-calendar:date=@creation}

Which gives:

<< November 2008 >>
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

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

{blog-calendar:date=@modified}

Which gives:

<< March 2009 >>
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

CSS Customisation

To follow

Hints and Tips

None at present.

Frequently Asked Questions

None at present.



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence