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

Choosing a ready-made content class

Which of the content classes that site packages install fits which job - folder, article, image, file, link, frontpage, feedback form, comment, forum, gallery, event and the media classes - and what to check before you…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/cms-developers/choosing-a-ready-made-content-class.md

On this page

Choosing a ready-made content class

A site installed from a site package comes with a set of content classes ready for common jobs. Using one of them saves templates and editor training, as long as its fields really match your content. This page groups the usual classes by job and says what to look at before you choose. Which classes your site has, and their exact fields, are listed under Setup > Classes; the classes of the sevenx_multisite packages are listed in sevenx_classes.

First decision: plain text or rich text

Every class mixes three kinds of text fields:

TypeDatatypeUse it for
Text lineezstringtitles, names, short labels: one line, no markup
Text blockeztextplain text over several lines, such as a message a visitor types
Rich textezxmltextformatted text with headings, links, lists, tables and embedded objects

Plain text keeps the look in the hands of the design: the template decides how it appears, and editors cannot add a different font or a stray link. Rich text gives editors structure, and the design still styles every element. Fields that visitors fill in, such as comments and form messages, should be plain text. Links to other content that survive moves and renames are only possible in rich text, because it stores the target by node or object, not by address.

Structure: folders and front pages

ClassContainerTypical fieldsChoose it for
Folder (folder)yesname, short name, summary, description, a switch whether to list its sub itemssections of the site and their landing pages
Frontpage (frontpage)yesname, a billboard (a related object), left, center, right and bottom columns of rich texta start page in columns, on sites without the layouts editor

The short name of a folder is used where space is tight, such as menus and breadcrumbs (the object name pattern <short_name|name> takes the short name when it is filled in). The switch to list sub items lets an editor turn a folder into a plain page. For new sites, a page built with Layouts usually replaces the Frontpage class.

Text content

ClassContainerTypical fieldsChoose it for
Article (article)yestitle, short title, author, intro, body, image (a relation), a switch for commentsnews and other dated texts
Article (main-page) and Article (sub-page)main page yesthe main page has the article fields plus an index title; sub-pages below it hold the further partslong texts read in parts
Documentation pageyesa title and a body, can hold sub pagesmanuals and handbooks in a tree
Infoboxnoheader, image, rich text content, a linksmall boxes in a column
Blog and Blog postyesa container for posts, and the post itselfblogs, with comments below each post

The Article class is a container on purpose: comments are created below the article. Which classes an editor may create below an article is a matter of the role's content/create policy with a Class and ParentClass limitation, not of the class.

Media

ClassDatatype of the fileChoose it for
Image (image)ezimagepictures; each image has its own alternative text, which can be made required per class attribute
File (file)ezbinaryfiledocuments to download, such as PDF files
Videoezmediavideo files played in the page
Flash, Quicktime, Real video, Windows media, Silverlightezmediaold sites only: these players need browser plugins that current browsers no longer run

Keep images and files in the media library (node 43, section Media) and relate or embed them where they are used. One image object can then appear in many places, and replacing it updates all of them.

ClassTypical fieldsChoose it for
Link (link)name, description, location (ezurl)lists of addresses on other sites, with their own page and description

An address stored in a Link object or in a rich text link goes through the link list, so it is checked for being broken and can be corrected in one place (How do I find and fix broken links?).

Visitors who write

ClassTypical fieldsChoose it for
Comment (comment)subject, author, messageshort replies below an article or blog post
Feedback form (feedback_form)name, description, then the fields a visitor fills in (sender name, subject, message, e-mail) and a recipient addresscontact forms
Forums, Forum, Forum topic, Forum replyforum topic: subject, message, sticky, notify me about updatesdiscussion areas
Pollname, description, and a question with options that visitors answer (an information collector)a single vote

The fields a visitor fills in on a feedback form are information collectors: their values are stored apart from the object, listed under Setup > Collected information, and sent by e-mail. Which address gets the mail is decided by the mail template of the design (content/collectedinfomail/feedback.tpl sets email_receiver); site designs normally read it from the Recipient field. When the template gives no valid address, the mail goes to site.ini [InformationCollectionSettings] EmailReceiver, or else to [MailSettings] AdminEmail.

A forum is a tree four levels deep: Forums holds Forum objects, a Forum holds topics, a topic holds its replies. Replies are not nested below other replies. The forum template of the ezwebin design lists sticky topics first, and "notify me about updates" subscribes the person who publishes the topic to the replies below it. Removing a forum removes all its topics and replies with it.

Calendars and galleries

ClassContainerChoose it for
Event calendar and Eventcalendar yesdated events listed by month
Galleryyesa set of Image objects shown together

Before you reuse a class

  • Read the class under Setup > Classes: its attributes, which are required, and its object name pattern.
  • Check the templates your design has for it. A class without a full view template of your design falls back to a generic one.
  • Rename fields in the class rather than misusing one: an "Author" field that holds a place name confuses every editor after you.
  • When no class fits, create your own (Creating a content class). A few clear classes are better than one class with optional fields for everything.

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