- The |agenda_affiche
filter is applied to a tag returning the number of elements to be displayed (generally a #TOTAL_BOUCLE
tag) and accepts three parameters:
- a text which will be displayed in the filtered tag returns nothing (0 elements to be displayed);
- a type of calendar (
jour
,semaine
,mois
orperiode
); - the CSS class names used in calling the preceding filter which will be used to filter the elements to be displayed.
Of the filtered tag is empty, this filter will return its first argument. Otherwise it returns the elements memorised by the
agenda_memo
filter, formatted as per the type of calendar requested.
Only the elements indexed by agenda_memo
with one of the CSS classes indicated in the last argument will be displayed (or all elements if that parameter is omitted). This means we can filter the elements to split them over several calendars on the same page.
The periode
type will restrict the display to the period including the oldest and most recent elements that were found, which makes it possible to assign a very large period without requiring an over long display result.
Example:
<BOUCLE_memorise(ARTICLES) {agenda date, semaine}{par date}>[
(#DATE|agenda_memo{#DESCRIPTIF,#TITRE,#URL_ARTICLE})
]</BOUCLE_memorise>
[(#TOTAL_BOUCLE|agenda_affiche{<:aucun_article:>,semaine})]
<//B_memorise>
displays the articles published in the current week in a calendar format.
See also the |agenda_memo and |agenda_connu filters.