MonthCalendar Top List MACRO

Presentation

You can use this macro to generate a list of recent entries from a MonthCalendar data structure.

This is an addition to the MonthCalendar macro (or the MonthCalendarHack one), so you should make yourself familiar with THAT one before trying to understand what this action can do for you.

Call this macro on a base page for a MonthCalendar. It will pack the contents of all tips you get when moving a mouse over some day entry into a simple, clickable list.

{i} If you have comments or want to report bugs, please check the appropriate section at the end of the page.

Installation

Copy the attached file to the /path_to_wiki_instance/data/plugin/macro directory. Rename it MonthCalendarTopList.py. Then check your SystemInfo page to verify that it's correctly installed.

Usage

Using the MonthCalendar macro, you create day entries with a title representing the content of the day entry.

MonthCalendarTopList generates a list from the previous X days indicating the titles and date.

[[MonthCalendarTopList()]]

will display the last 365 days entries

[[MonthCalendarTopList(X)]]

will display the last X days entries.

The page title must be in the form

= Title of the day page =

or

'''Title of the day page'''

The generated content looks like

A title for this day (2007-10-02)
Another one for the same day (2007-10-02)
One more! (2007-10-02)
A title for another day (2007-10-01)
Untitled (2007-09-13)

Note that if no identified title exists, the page still appears with its date and named Untitled.


Development information

Authors

The original author is Mark Stier (MSt).

It has been modified and is mantained by EricVeirasGalisson.

History

Repository

If you are interested, the Mercurial repository for this macro is located at:

Roadmap

Related links

You can also be interested in the MonthCalendarHack macro.

Bugs / Comments

Old Ones

MoinMoin: MacroMarket/MonthCalendarTopList (last edited 2009-02-13 11:00:42 by EricVeirasGalisson)