Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,220 of 9,220 pages
About the help in other languages
All help pages

Calendar views

How the ezwebin calendar and program views of the Event calendar class work - choosing the view, month navigation addresses, paging, caching - and what to do on a design without event templates, including accessibility…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/building/events/calendar-views.md

On this page

Calendar views

This page is for website creators and designers who show events as a calendar or a list. It describes the two views of the ezwebin design and how to provide the same on another design. Template facts are from extension/ezwebin/design/ezwebin/templates/full/ and What ships.

Contents

  1. Choosing the view
  2. The calendar view
  3. The program view
  4. Caching
  5. On a design without event templates
  6. Accessibility of calendars

Choosing the view

Edit the Event calendar object; the View selection decides which template full/event_calendar.tpl includes: the calendar or the program. Each calendar object has one view; two calendar objects (or a Multicalendar) can show the same events differently.

The calendar view

event_view_calendar.tpl shows one month as a grid:

FeatureDetail
Month shownthe current month, or the one in the address: <calendar address>/(month)/<1-12>/(year)/<yyyy>
Navigationprevious and next month links (titled "Previous month" / "Next month")
Eventsfetched below the calendar with attribute filters on the From Time and To Time of the month
A day(day)/<n> in the address selects a day

The program view

event_view_program.tpl lists events in time order, 15 per page, with links to newer and older events; the page is in the address as an offset. For many visitors this list is easier to use than a grid, on phones and with screen readers.

Caching

The ezwebin event calendar sets a cache_ttl on its full view so the "current month" moves on without a publish (Caching for designers). Publishing an event clears the view cache of the event and its parent calendar. Lists of events elsewhere (front page blocks) need their own expiry (Listing upcoming events).

On a design without event templates

The default design of new installations (simple) has no event templates. Options:

OptionEffort
Add full/event_calendar.tpl and full/event.tpl overrides to your design, based on the ezwebin templatesmoderate; copy, adapt markup and texts
A program-style list only: a folder with a fetch template sorted by From Timesmall (Listing upcoming events)
Exponential Layouts: a block that lists events of a calendarno template work for editors (The layouts editor)

Template overrides match the class identifier (Template overrides). The ezwebin templates are GPL code; copying them into your design is allowed under the same license.

Accessibility of calendars

IssuePractice
A month grid is a data tablereal table markup with header cells for weekdays (scope="col") and a caption with the month
Events in cells are often tiny linksa minimum target size (WCAG 2.2 criterion 2.5.8) and readable text
Navigation links shown as arrows onlylink text or an accessible name: "Previous month"
Days without eventsdo not announce empty cells as links
Alternativealways offer the program list next to the grid

Test with a keyboard and a screen reader (Testing accessibility); the shipped ezwebin template was not audited (Accessibility standards).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x