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

Content model for national government

Which content classes and datatypes of Exponential fit a ministry site, which shipped classes to reuse, and three classes to add in the class editor - Publication, Consultation and Press release - with real datatypes.

Download as PDF

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

On this page

Content model for national government

This page is for website creators and project managers who design the content classes of a ministry or central department site. It names the classes that ship with the default site package and fit as they are, and gives recipes for the classes most national sites add. Every class and datatype named here exists in Exponential: the classes in the sevenx_classes package and its base data (sevenx_classes), the datatypes in kernel/classes/datatypes/ and in the extensions named.

Contents

  1. Shipped classes that fit
  2. Class to add: Publication
  3. Class to add: Consultation
  4. Class to add: Press release
  5. Taxonomy and reuse
  6. Rules of thumb

Shipped classes that fit

On a new installation of the default package these classes exist (identifiers as in Setup > Classes):

ClassIdentifierUse on a ministry siteNotes
Folderfoldertopic pages, unit pages, containershas Summary, Description, Display sub items, Tags (ezkeyword) and Publish date (ezdatetime)
Articlearticlepolicy pages, news, speechesTitle, Short title, Author (ezauthor), Intro and Body (ezxmltext), Image (ezobjectrelation)
Filefileany downloadable documentName, Description, File (ezbinaryfile)
Imageimagephotos, charts as imagesthe image field can require an alternative text
Linklinka link to a transactional service on another systemezurl
Eventeventministerial events, launchesFrom Time and To Time (ezdatetime), Category (ezkeyword)
Feedback formfeedback_forma contact formits Sender name, Subject, Message and Email are information collector fields
Job positionng_job_positionvacanciesLocation, Engagement type, Application deadline (ezdatetime)
Personng_personoffice holders' public profilesName, CV, Image; keep only what the office makes public

The ng_* classes come with the demo content packages of the default site package, in both the full and the clean variant (The demo content packages).

Class to add: Publication

A report, strategy or guidance document with a landing page that summarizes it. Create it in Setup > Classes, group Content, New class (Content classes for websites).

AttributeIdentifierDatatype (class editor name)RequiredWhy
TitletitleText line (ezstring)yesthe name of the publication
SummarysummaryXML block (ezxmltext)yesan accessible HTML summary of the document
DocumentdocumentFile (ezbinaryfile)nothe PDF or other file; or use Related files below
Related filesfilesObject relations (ezobjectrelationlist)noseveral files (language versions, annexes) as File objects
Publication datepublication_dateDate (ezdate)yesthe official date, independent of the publish time
Reference numberreferenceText line (ezstring)nothe document number used in citations
Publication typepublication_typeSelection (ezselection)yesreport, strategy, guidance ...
TopicstagsTags (eztags)nocross-unit topics (eztags)
Meta datametadataMetadata (xrowmetadata)nopage title and description for search engines

Object name pattern: <title>. Mark Summary searchable so the search finds the publication even when the file is not indexed.

Class to add: Consultation

AttributeIdentifierDatatypeCollectorWhy
Titletitleezstringno
Proposalproposalezxmltextnowhat is proposed, in plain language
Opensopensezdatetimenoshown on the page
Closesclosesezdatetimenoshown on the page; the form template can hide the form after it
Documentsdocumentsezobjectrelationlistnothe consultation paper and annexes
Your responseresponseeztextyesthe visitor's answer
Responding asrespondent_typeezselectionyesindividual, organization ...
Organization nameorganizationezstringyesoptional for individuals
E-mailemailezemailyesonly if you will reply; otherwise leave it out
Outcomeoutcomeezxmltextnothe published result after closing

Ticking Information collector on an attribute makes visitors, not editors, fill it in (Forms with the information collector). Responses appear in Setup > Collected information and export as CSV (Collected information). Collect only what the consultation needs.

Class to add: Press release

AttributeIdentifierDatatypeWhy
Titletitleezstring
Release date and timerelease_dateezdatetimethe embargo time; can drive a Wait until date workflow event
Leadintroezxmltextthe first paragraph
Bodybodyezxmltext
Press contactpress_contactezxmltexta role address such as the press office, not a private person
Attachmentsattachmentsezobjectrelationlistphotos and documents
Topicstagseztags

A Wait until date event, set to the class and its date attribute, holds a version until that time and the workflow cronjob publishes it (Workflows). Test this on a copy of the site first.

Taxonomy and reuse

  • Tree for ownership, tags for topics. The content tree says which unit owns a page; tags say which topics it is about. A press release lives under the press office and carries the tags of every topic it touches.
  • Relations, not copies. A publication linked from five topic pages is one object with five relations, so an update is made once (Relations and reuse).
  • Several locations when one page must appear in two menus (Content model and editing).

Rules of thumb

RuleReason
Add a class only when its fields differevery class needs templates, roles and training
Make dates attributes, not textlists, feeds and expiry use them
Keep personal data out of content classes unless the office makes it publicdata minimization
Decide translatable attributes up frontdates and codes are usually not translated (Content languages)
Move classes between installations as packagesPackages

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