Skip to content

Commit 9c8b5fc

Browse files
committed
Add press_release.json
Define press_release.json. Only 'news story' and 'press release' content types exist in Content Publisher - so we need to support both of these document types in the import. They're effectively identical content types, so I've copied and pasted the same config file contents as news_story.json, with the relevant bits tweaked. This will almost certainly need rebasing later!
1 parent 7452c9f commit 9c8b5fc

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"key": "press_release",
3+
"schema": {
4+
"$schema": "https://json-schema.org/draft/2020-12/schema",
5+
"$id": "https://www.gov.uk/schemas/press_release/v1",
6+
"title": "Press Release",
7+
"description": "Unedited press releases as sent to the media, and official statements from the organisation or a minister.",
8+
"type": "object",
9+
"properties": {
10+
"body": {
11+
"title": "Body (required)",
12+
"type": "string",
13+
"format": "govspeak"
14+
},
15+
"image": {
16+
"title": "Lead image",
17+
"description": "Select a lead image, if required",
18+
"type": "string",
19+
"format": "image_select"
20+
}
21+
}
22+
},
23+
"settings": {
24+
"base_path_prefix": "/government/news",
25+
"publishing_api_schema_name": "news_article",
26+
"publishing_api_document_type": "press_release",
27+
"rendering_app": "frontend",
28+
"images_enabled": true,
29+
"send_headings": false,
30+
"file_attachments_enabled": true,
31+
"organisations": null,
32+
"backdating_enabled": true,
33+
"history_mode_enabled": true
34+
}
35+
}

0 commit comments

Comments
 (0)