To present elements selected by a loop (particularly a loop that uses an agenda criteria) as a calendar, SPIP offers three special filters. These filters offer displays similar to the calendar in the private zone with the same navigation system.

  • New in : SPIP 1.8.2

-  The |agenda_memo filter is applied to a date type tag (e.g. #DATE or #DATE_MODIF) and accepts four parameters:

  1. a description
  2. a title
  3. a URL representing the element with that title and description (e.g. #URL_ARTICLE)
  4. a CSS class name

If the tag to which agenda_memo is applied is not empty, it simply memorises the date and three first arguments into a table indexed by the last argument (the CSS class name) and will not return anything (no display).

The use of the last argument as an index for the element to be memorised makes it possible to have several calendars per page. In addition, the class specified here will be assigned to that element when displayed as a calendar with the agenda_affiche filter. This means we can provide different styles to each element. The calendrier.css stylesheet offers 28 different styles to provide examples of the various calendar styles possible.

See also the |agenda_affiche and |agenda_connu filters.

Author Mark Published : Updated : 26/10/12

Translations : català, English, français, Nederlands