{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.
.png)








Comments (3)
Sep 17, 2009
Ville Valtasaari says:
The blog-calendar, -list and -archive macros would be just perfect if they inclu...The blog-calendar, -list and -archive macros would be just perfect if they included the labels option with boolean AND and OR. That would allow us to have blogs/news of several categories in a single space.
r. Ville
May 24, 2010
frank knobloch says:
Is there a way to include a list of spaces or all spaces like space=* or spaces=...Is there a way to include a list of spaces or all spaces like space=* or spaces=a,b,c?
Jun 15, 2010
Hendry Betts says:
Alain - is there any plan to make this configurable through the use of labels?Alain - is there any plan to make this configurable through the use of labels?