Jump to main content Jump to doc navigation

Usage

This chunk is a header of the calendar.

<tr>
    <td class="[[+ec.class_prev]]"><a href="[[+ec.link_prev]]">&larr;</a></td>
    <td class="[[+ec.class_month]]" colspan="5" style="text-align:center;"><strong>[[+ec.month_name]] [[+ec.year]]</strong></td>
    <td class="[[+ec.class_next]]"><a href="[[+ec.link_next]]">&rarr;</a></td>
</tr>

Placeholders

Name Description
link_prev Link to next month
link_next Link to previous month
class_prev CSS classname for previous month button.
class_next CSS classname for next month button.
class_month CSS classname for month and year.
month_name Name of the current month/
month_prev Name of the previous month.
month_next Name of the next month.
year Current year.

See Also

  1. eventsCalendar2.eventsCalendar2
  2. eventsCalendar2.Generating events
  3. eventsCalendar2.tplCalendar2
  4. eventsCalendar2.tplCell2
  5. eventsCalendar2.tplEvent2
  6. eventsCalendar2.tplHead2

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more