From 8233359bfd5ef5bf6a2002aa330c5a0564e8775e Mon Sep 17 00:00:00 2001 From: Raphaelle Cantin Date: Mon, 16 Dec 2024 11:09:58 +0000 Subject: [PATCH] Add explore more document link on stories --- common/customtypes/articles/index.json | 8 ++++++++ common/prismicio-types.d.ts | 15 ++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/common/customtypes/articles/index.json b/common/customtypes/articles/index.json index b732e317d1..993b4bcfe1 100644 --- a/common/customtypes/articles/index.json +++ b/common/customtypes/articles/index.json @@ -176,6 +176,14 @@ } }, "Content relationships": { + "exploreMoreDocument": { + "type": "Link", + "config": { + "label": "\"Explore more\" document", + "select": "document", + "customtypes": ["articles", "exhibitions"] + } + }, "series": { "type": "Group", "fieldset": "Series", diff --git a/common/prismicio-types.d.ts b/common/prismicio-types.d.ts index 498dbf75e2..94080bd1e3 100644 --- a/common/prismicio-types.d.ts +++ b/common/prismicio-types.d.ts @@ -283,6 +283,19 @@ interface ArticlesDocumentData { * - **Documentation**: https://prismic.io/docs/field#rich-text-title */; metadataDescription: prismic.RichTextField /** + * "Explore more" document field in *Story* + * + * - **Field Type**: Content Relationship + * - **Placeholder**: *None* + * - **API ID Path**: articles.exploreMoreDocument + * - **Tab**: Content relationships + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */; + exploreMoreDocument: prismic.ContentRelationshipField< + 'articles' | 'exhibitions' + >; + + /** * Series field in *Story* * * - **Field Type**: Group @@ -290,7 +303,7 @@ interface ArticlesDocumentData { * - **API ID Path**: articles.series[] * - **Tab**: Content relationships * - **Documentation**: https://prismic.io/docs/field#group - */; + */ series: prismic.GroupField>; /**