Skip to the content
Documentation

Content classes

No ratings yet

Every page of a site is of a class: an article, a folder, a landing page, an image. The class decides which fields the page has, how it is shown, and where it can be created. The classes come with the site package the site was installed from, and an administrator can add or change them. This page explains how to find out which classes your site has and what their fields mean. The old chapter listed the classes of the website interface package of the eZ Publish years field by field; that list applied to that package only.

Which classes your site has

  1. In the administration, open Setup and choose Classes. The classes are listed in class groups, such as Content, Users, Media and the groups of the site package.
  2. Open a group to see its classes, each with its identifier and the number of objects of that class.
  3. Click a class to see its fields in order, with their types, their flags (required, searchable) and the description editors see in the edit form.
The list of the classes of a class group in the administration

Setup, Classes: the classes of one group with their identifiers and numbers of objects. The classes decide which fields a page of each kind has.

The page of the NG Article class with its fields, their types and their descriptions

A class's page lists its fields in order, each with its type, its flags and the description editors see in the edit form.

On the public site, the Create panel of the website sidebar lists the classes you may create below or beside the page you are on. Its Type list therefore changes from page to page.

The classes of a typical Exponential 6 site

The Fit & Healthy demo site (the media site package) brings, besides the standard classes of every installation, a group of its own. The most used are:

Class Used for
Landing page Pages built from blocks with the layouts editor, such as the front page and the section pages.
NG Article, News, NG Blog post Texts with a title, a teaser, images, intro and body, tags and meta data.
Category, Container Sections of the site that list the pages below them.
NG Gallery, NG Video, Audio Pictures, videos and sound.
Recipe, Person, Job position, Topic Content of their own kind, with fields of their own.
Contact form, Feedback form, Lead form, Job Application Form Forms visitors fill in; the answers are collected information.
NG Banner, HTML box, Logo, Menu item, Shortcut, Site info, Cookie policy Parts of pages: they are placed in layouts and menus rather than read on their own.

The classic groups hold the classes of the older site designs and of every installation: Content (Folder, Article, Blog and Blog post, Forum, Event, Gallery, Feedback form, Comment, Link and more), Media (Image, File, Video and older media formats) and Users (User, User group). A site installed from another package has other classes; look them up in Setup, Classes as above.

What can go wrong

  • A class you need is not offered. Your role may not create it in that place, or the class may not be a container that can hold pages below it. Ask an administrator.
  • Setup, Classes is missing. Only roles with the class policies see it, usually administrators and site builders.
  • You are not sure what a field is for. Its description is shown in the edit form below its name, when the class has one. Administrators write these: see Creating help texts.

Read more

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.