SPIP

[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [vi] [zh] Espace de traduction

Download

|agenda_connu

July 2010 — updated on : June 2010

All the versions of this article:

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.


The agenda_connu filter is used to test if its argument is one of the four types of calendars recognised (jour, semaine, mois or periode).

The agenda criteria and its filters are used by the new templates files: agenda_jour.html, agenda_semaine.html, agenda_mois.html et agenda_periode.html, called from the agenda.html template which specifies in its header the stylesheets and JavaScript functions required (but replaceable if so desired). These templates therefore offer us an excellent reference case of how to use the criteria and filters.


See also the |agenda_affiche and |agenda_memo filters.


Show the template of this page Site powered by SPIP | Translation area | Private area