Skip to content

6.12.2.2 ArticleTranslation

6.12.2.2.1 Purpose

To be written.

6.12.2.2.2 Questions it answers

  • To be written.

6.12.2.2.3 Fields

Field Type Cardinality Description
id string (uuid) 1..1 Key.
article Article 1..1
locale enum 1..1 Values: it, en.
slug string 1..1 Lowercase words of the language joined by hyphens, e.g. "nuovi-robot-di-mungitura"; the address is news.moonitoring.com/<locale>/<slug>. Unique per locale.
title string 1..1 Up to 70 characters: the page's only h1, and its title unless seo_title is set.
seo_title string 0..1 Up to 60 characters, for search results when the title is longer.
summary string 1..1 50 to 160 characters: the meta description, the description of social previews and the text of article cards.
body string 1..1 Markdown, a fixed subset: headings from level 2, paragraphs, emphasis, lists, links, quotes, tables and images of NewsAsset (149) with their alt text. No raw HTML.
status enum 1..1 Values: draft, ready. Default: draft.
Only ready translations are published.
social_image NewsAsset 0..1 The 1200x630 image of link previews in this language. Absent: the site generates one from the cover and the title.
cover_alt string 0..1 Alt text of the article's cover in this language; required when the article has a cover.
previous_slugs string 1..* Slugs it was published under before; each answers a permanent redirect (301) to the current slug.
system_version SystemVersion 1..1
created_at datetime 1..1
updated_at datetime 1..1

6.12.2.2.4 Relationships

References

Uses types

SystemVersion

6.12.2.2.5 Rules & constraints

  • The article in one language: its own address, title, summary and text, so each language ranks on its own.
  • (article, locale) is unique. A slug is never reused by another article in the same locale, previous slugs included.