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 classes for websites

Create and change content classes in the class editor - groups, attributes, required and translatable fields, name patterns, containers - and what is safe to change on a site with content.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/content-classes-for-websites.md

On this page

Content classes for websites

This page is for website creators who create or adapt the content classes of a site in the administration. It covers the class editor, the settings of a class and of each attribute, and which changes are safe once the site holds content.

Setup, Classes: the class groups with the number of classes in each
Setup, Classes: the class groups with the number of classes in each

Contents

  1. Where classes live
  2. Create a class
  3. Class settings
  4. Attribute settings
  5. Changing a class on a live site
  6. Moving classes between installations

Where classes live

Setup > Classes (/class/grouplist) lists the class groups (Content, Users, Media, Setup); each group lists its classes (Class groups). The classes of a new installation come from the site package (Site packages and the themes that ship).

Create a class

From 2. Create a class:

  1. Open Setup > Classes, the group Content, then New class.
  2. Give a name (Event) and an identifier (event).
  3. Set the object name pattern, for example <title>.
  4. Add attributes: choose a datatype under Add attribute, press Add, give a name and an identifier.
  5. Press OK. The class can now be created wherever policies allow.

Class settings

SettingWhat it does
Name, identifierwhat editors read; what templates and overrides use
Object name patternbuilds each object's name from attributes: <title>, <first_name> <last_name>, <short_title|title> (the first that is not empty)
URL alias name patternbuilds the URL alias; empty means the object name
Containerthe class may have children
Default sorting of childrenthe sort order new objects of this class give their children
Default object availabilitywhether an object is shown in languages it was not translated into ("always available")

Attribute settings

SettingUse
Requiredthe object cannot be published while it is empty
Searchablethe attribute's text goes into the search index
Translatableeach language has its own value; turn off for prices, dates, codes
Information collectorthe attribute is filled in by visitors, not editors (Forms with the information collector)
Categorygroups attributes into tabs of the edit form
Datatype optionsdepend on the datatype: maximum length, default value, allowed classes for relations, image size limit ...

Two datatype options were added in Exponential 6 and are worth knowing for websites (9. Required alternative text ...): image fields can require an alternative text, and text lines can trim the stored value.

Changing a class on a live site

ChangeSafe?Note
Add an attributeyesexisting objects get an empty value; check templates handle empty
Rename an attribute's nameyesthe identifier stays
Change an identifierriskyevery template and fetch using it must change at once
Make an attribute requiredyes, butexisting objects stay as they are until edited
Remove an attributedestructivethe data of that attribute is deleted from every object
Change a datatypenot possible in placeadd a new attribute, migrate the data, remove the old one
Move an attribute up or downyesonly the edit form order

Warning

Large classes with many objects take a while to change, because every object gets the new attribute. Make class changes outside busy hours, and with a backup (Backups and restores).

Moving classes between installations

Do not rebuild classes by hand on the production site. Export them from the development installation as a package and import it (Content packages (.ezpkg), Packages). Identifiers and remote IDs keep templates and overrides working on both sides.

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