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

Modeling an event class

Which attributes to add to the shipped Event class for public events - place, venue accessibility, audience, booking status, booking link, organizer, tags - how to add them safely on a live site, and when to make a…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/building/events/modeling-an-event-class.md

On this page

Modeling an event class

This page is for website creators who adapt the Event class for public-sector events. The shipped class (What ships) has a title, text, category keywords and start and end times. Public events usually need more structured information so it can be shown consistently and filtered.

Contents

  1. Attributes to add
  2. Adding them safely
  3. A Place class
  4. Extend or create your own class

Attributes to add

AttributeIdentifierDatatypeWhy
PlaceplaceObject relation (ezobjectrelation) to a Place objectone place, reused by many events
Accessibility at the eventaccessXML blockstep-free access, hearing loop, sign language, quiet space
AudienceaudienceTags (eztags) or Selectionresidents, businesses, families
TopicstagsTagsreplace or complement the Keywords category
BookingbookingSelection: free entry, booking required, fully booked, cancelled, postponedshown at the top
Booking linkbooking_urlURL (ezurl)when bookings run elsewhere
OrganizerorganizerText linea department or partner, not a person
CostcostText line"Free" or the amount
ImageimageObject relation to an Imageoptional, with alternative text

Adding them safely

Adding attributes to a class that has objects is safe: existing objects get empty values (Content classes for websites).

  1. Make the change on a test installation first; move it with a package (Packages).
  2. Setup > Classes, Content group, Event, Edit; add each attribute; set Translatable off for Booking, Booking link and Place; OK.
  3. Update the templates (full/event.tpl, the calendar and program views, your lists) to show the new fields; the shipped ezwebin templates do not know them (Template overrides).
  4. Clear the caches: php bin/php/ezcache.php --clear-tag=template and php bin/php/ezcache.php --clear-id=content (Caches).

Large classes take a while to change; do it outside busy hours and with a backup.

A Place class

AttributeIdentifierDatatype
NamenameText line
AddressaddressText block
Getting theredirectionsXML block
Accessibility of the venueaccessXML block
Map locationlocationGoogle Maps Location (ezgmaplocation), optional, a third-party service

Events relate to a Place; a template on the Place page lists its upcoming events with a reverse relation fetch.

Extend or create your own class

Extend the shipped EventCreate your own class
you use the ezwebin calendar viewsyour design has its own templates anyway
the shipped fields fityou need a different structure (for example meeting dates of a council)
a package import of sevenx_classes later should update the same classyour class must not be touched by package imports

A class of your own works with the same fetches if it has a Date and time start attribute; adapt the class and attribute identifiers in templates.

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