generated from UCLALibrary/nuxt3-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APPS 3108 Add Article Listing GQL query (#95)
* wip: add gql query for page data * wip: load placeholder page data, add useHead * Update article queries with listing image field --------- Co-authored-by: tinuola <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
query FTVAArticleList { | ||
entries(section: ["ftvaArticle"], orderBy: "postDate") { | ||
#import "../gql/fragments/Image.gql" | ||
|
||
query FTVAArticleList($slug: [String!]) { | ||
entry(section: ["ftvaListingArticles"], slug: $slug) { | ||
id | ||
typeHandle | ||
sectionHandle | ||
title: titleGeneral | ||
summary | ||
ftvaFeaturedArticles { | ||
title | ||
postDate | ||
ftvaHomepageDescription | ||
uri | ||
ftvaImage { | ||
...Image | ||
} | ||
} | ||
} | ||
entries(section: ["ftvaArticle"], orderBy: "postDate DESC") { | ||
typeHandle | ||
id | ||
title | ||
to: slug | ||
text: summary | ||
postDate | ||
ftvaHomepageDescription | ||
uri | ||
ftvaImage { | ||
...Image | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75ebf88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://test-ftva.library.ucla.edu as production
🚀 Deployed on https://67883bc4ea6ad77a3246f108--test-ftva.netlify.app