> For the complete documentation index, see [llms.txt](https://docs.morpht.com/convivial-for-govcms/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.morpht.com/convivial-for-govcms/content-editing/updates.md).

# Updates

An Update is a short, dated note attached to a page — *Fee schedule under review*, *Service disruption resolved*. It tells visitors that something about the page has changed without writing a full article. Updates show at the foot of the page they are attached to, newest first, and every published Update is also listed on the site's **Latest** page and in its feeds.

## Update, Article or Alert?

* **Update** — news about one page: a change, a delay, a correction. It lives with that page and is short.
* **Article** — news that stands on its own, with its own place in the menu and listings.
* **Alert** — a notice for the whole site, shown on every page until it ends.

Any content type except Alert can have Updates, and one Update can be attached to more than one page.

## Writing an update

Updates are written from the page they belong to. Edit the page and find the **Updates** field near the bottom of the form.

1. Select **Add new update**. The Update's fields open inside the page form.
2. Fill in the fields below and select **Create update**. The Update is saved straight away, as a Draft, and listed in the field.
3. Save the page.

To attach an Update that already exists, for example one that covers several pages, select **Add existing update**, start typing its title and choose it from the list.

**Remove** in the field only takes the Update off this page. The Update itself is kept, along with any other pages it is attached to.

An Update can also be written on its own, at *Manage → Content → Add content → Update*, and attached afterwards with **Add existing update**.

## Fields

* **Title** — the name editors see in the content list and the **Updates** field. Lead with the page, e.g. *Test resource: Fee schedule under review*, so it can be told apart from other Updates.
* **Update title** — the heading visitors see, e.g. *Fee schedule under review*. It also sets the Update's address: `/updates/fee-schedule-under-review`.
* **Published date** — the date the Update is about. Updates are sorted on it, on the page and on the Latest page.
* **Description** — a one-sentence summary, shown on the Latest page and in the feeds.
* **Content** — the Update itself, one or two short paragraphs. This is what shows on the page.
* **Search exclude** — leaves the Update off the Latest page and out of the feeds. See [Excluding from search](https://docs.morpht.com/convivial-for-govcms/concepts-and-tools/excluding-from-search.md).

## Publishing

Updates follow the same [workflow](https://docs.morpht.com/convivial-for-govcms/content-editing/workflow.md) as Articles.

* **Authors** — an Update created from a page is a Draft. When it is ready, open it from *Manage → Content*, set **Change to** to **Needs review** and save.
* **Approvers** — publish Updates from *Manage → Content → Moderated content*, or by opening the Update and setting it to **Published**. Approvers can attach existing Updates to a page but not write new ones.

An Update shows on its page only once it is published. Until then, logged-in editors see it marked **Unpublished**.

To change an Update after it is published, open the Update itself rather than the page. Its changes go through the workflow again, and the published version stays on the page until the new one is published.

## What visitors see

* **On the page** — an **Updates** list at the foot of the page, newest first. Each Update shows its date, its Update title and its content. Pages without published Updates look as they did before.
* **The Update's own page** — at `/updates/<update-title>`, with the pages it is attached to listed underneath.
* **Latest** — `/latest` lists the newest Updates, Articles, Publications, Resources and FOI disclosures together, with a **Content type** filter.
* **Feeds** — the same items as the Latest page, newest first, at `/data/latest/feed.rss` (for feed readers) and `/data/latest/feed.json` (for other sites and services).

Updates are left out of the site's main search. Visitors find them on their page and on the Latest page instead.

## Tidying up

If **Create update** is used and the page is then left without saving, the Update stays behind as a Draft attached to nothing. Find these under *Manage → Content*, filtered to **Content type: Update** and **Moderation state: Draft**, and delete the ones no page uses. The Update's own page lists the pages it is attached to; an empty list means it can go.

## For site administrators

* **Latest page** — the Latest page is content, not configuration, so create it on each new site: a Collection at `/latest` with the search view's *Latest* block and the *Content type* facet block. Then reindex the content index (`drush search-api:index content`).
* **Customised layouts** — pages whose layout has been customised keep their own layout, so they do not show the **Updates** list until it is added to that page's layout.
* **Admin theme** — writing an Update from a page relies on the admin theme. Keep *Use the administration theme when editing or creating content* turned on, or **Create update** cannot save the Update.
