Content modeling reference · fields, categories, and public lists
Define a news model, assign its categories, and query only the fields a public list needs.
When a story belongs on the homepage, in a news section, and in a related-stories block, let each place use the same entry. Decide which values belong to the story, which vary by language, and which the template can share.
Understand entries, pages, and models
| What you are building | Structure to use |
|---|---|
| An article with its own public URL | An entry in a page module. The module supplies its path prefix and default template, while the entry is associated with a page. |
| A reusable tag or reference record | A model module. Its entries provide referenceable data without their own public page address. |
| A section with an introduction, subcategories, and a list | A category module with a page template. The full theme’s Article category is an example. |
| A one-off block on a single article | A page section. Put structure shared by all detail pages in the template. |
In the full theme, Article entries localize the title, description, and body. Cover images, categories, tags, and publication dates are structured fields. For each field, ask whether its value differs by article and whether it differs by locale.
Assign categories and verify list order
In the full theme’s Article module, the primary parent can identify the main category, while the Categories field can attach additional categories. These are separate relationships. A declared category list can include primary membership and active descendants, and can retain its own order.
Try a story with one primary and one additional category. Check both public lists. If the story is available in the admin but absent from a list, check the enabled state, selected category, and template query. After reordering one category, verify the other list as well.
Request only the fields the public list uses
To build a compact list, confirm the actual module ID and published field schema. Send a request like this to POST /_/public/cms-entry/query on the public Service origin. Replace the example UUID with the ID of your news module.
{
"moduleId": "00000000-0000-4000-8000-000000000001",
"page": 1,
"pageSize": 10,
"requireActive": true,
"requirePage": true,
"fieldKeys": ["title", "description", "image"],
"referenceScope": "assets",
"includeTotal": false
}
requireActivefilters for enabled entries andrequirePagerequires a page association. Setlocaleto request localized values. Fields without a matching translation can fall back to the source.fieldKeysprojects the selected fields.referenceScope: "assets"expands asset references only. Use the returned reference data to resolve the cover image. Field values keep their reference shape.includeTotal: falseskips counting matches and returnstotal: 0. Request a total when the UI needs a total page count.
Change the model after publishing entries
To add a source link to news articles, declare a new field in the manifest and try theme synchronization in add mode. This is the default mode. It preserves existing field definitions and can add new entry columns to the existing table. Check one existing and one new article for retained values, the new editable field, and correct list and detail rendering.
| Change | Sync behavior and what to verify |
|---|---|
| Add a field | Use add, then populate the field on existing entries as needed |
| Remove an unused field | replace cleans up retired fields and associated reference or search indexes, and removes their entry columns. Export values you still need first |
| Change a field’s type or structure | replace rejects incompatible structure changes for the same key. Plan a data migration, for example add the target field, move values, switch consumers, and retire the old field |
| Remove a module or template | replace also handles resources removed from the definition. Check existing pages, references, and template dependencies first |
Rehearse on a test environment restored from a backup with existing entries. Record entry counts, representative fields and translations, key public URLs, and assigned templates before and after sync. Schedule the live change after checking the rendered pages. If sync rejects a field change, plan the data migration before removing or renaming the key.
For a first publishing exercise, see pages and content. For rendering and publishing behavior, see the technical reference.