Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explore more document link on stories #11445

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions common/customtypes/articles/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@
}
},
"Content relationships": {
"exploreMoreDocument": {
"type": "Link",
"config": {
"label": "\"Explore more\" document",
"select": "document",
"customtypes": ["articles", "exhibitions"]
}
},
"series": {
"type": "Group",
"fieldset": "Series",
Expand Down
15 changes: 14 additions & 1 deletion common/prismicio-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,27 @@ 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
* - **Placeholder**: *None*
* - **API ID Path**: articles.series[]
* - **Tab**: Content relationships
* - **Documentation**: https://prismic.io/docs/field#group
*/;
*/
series: prismic.GroupField<Simplify<ArticlesDocumentDataSeriesItem>>;

/**
Expand Down
1 change: 1 addition & 0 deletions playwright/test/mocks/one-schedule-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export const oneScheduleItem: prismic.Query<RawArticlesDocument> = {
},
},
],
exploreMoreDocument: { link_type: 'Document' },
seasons: [
{
season: {
Expand Down
Loading