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

Content model for public libraries

The shipped Event and Event calendar classes and their attributes, other classes that fit a library site, and recipes for Branch, Recommendation and Digital resource classes with real datatypes.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/levels/public-libraries/content-model.md

On this page

Content model for public libraries

This page is for website creators and project managers who design the content classes of a library site. The events classes ship with Exponential; branches and recommendations are added in the class editor (Content classes for websites). Class definitions are taken from the sevenx_classes package (sevenx_classes) and the class view of the demonstration server.

Contents

  1. The events classes
  2. Other shipped classes that fit
  3. Class to add: Branch
  4. Class to add: Recommendation
  5. Class to add: Digital resource
  6. Extending the Event class

The events classes

Event (event), not a container:

AttributeIdentifierDatatypeRequired
Full titletitleText line (ezstring)no
Short titleshort_titleText lineyes
TexttextXML block (ezxmltext)no
CategorycategoryKeywords (ezkeyword)no
From Timefrom_timeDate and time (ezdatetime)yes
To Timeto_timeDate and timeno
Meta DatametadataMetadata (xrowmetadata)no

Event calendar (event_calendar) is a container with a Selection (ezselection) that chooses its view; the ezwebin design shows the choices as a calendar (event_view_calendar.tpl) or a program list (event_view_program.tpl). In the default package's roles, editors may create event below event_calendar (Roles and policies of sevenx_multisite).

Other shipped classes that fit

ClassIdentifierUse
Folderfolderbranches folder, services, themes
Articlearticlenews, service explanations
Gallery, Imagegallery, imagephotos of events and buildings
Linklinkthe catalog, digital resource providers
Feedback formfeedback_formcontact, suggestions
Pollpollquick questions to readers

Class to add: Branch

AttributeIdentifierDatatypeWhy
NamenameText line
AddressaddressText block (eztext)
Opening hoursopening_hoursXML blocka table per weekday
ExceptionsclosuresXML blockholiday closures, short-notice changes
FacilitiesfacilitiesTags (eztags)computers, printing, study rooms, children's area
AccessibilityaccessXML blockentrance, toilets, hearing loop, parking
PhonephoneText line
E-mailemailEmail (ezemail)a branch mailbox
ImageimageImage (ezimage)with alternative text

Events relate to their branch through an ezobjectrelation attribute added to Event (see below), so a branch page can list its events.

Class to add: Recommendation

AttributeIdentifierDatatypeWhy
TitletitleText linethe theme of the list
IntroductionintroXML block
TitlesitemsXML block or Matrix (ezmatrix)title, author and a link to the catalog record
AudienceaudienceTagschildren, teens, adults, easy reading
Language—the object's translations

A matrix gives a tidy table; rich text gives more freedom. Either way each item links to the catalog record rather than copying it.

Class to add: Digital resource

AttributeIdentifierDatatype
NamenameText line
What it offersdescriptionXML block
How to sign inaccessXML block
LinkurlURL (ezurl)
Provider's privacy noticeprivacy_urlURL

Extending the Event class

Adding attributes to the shipped Event class is safe (existing events get empty values, Content classes for websites). Useful additions for libraries:

AttributeDatatypeWhy
BranchObject relation (ezobjectrelation)the place
AudienceTags or Selectionchildren, families, adults
BookingSelectionfree entry, booking required, full, cancelled
Booking linkURLwhen bookings run elsewhere

Change templates to show the new fields; the shipped ezwebin templates do not know them (Template overrides).

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