Skip to content

Commit f89939c

Browse files
committed
update the query
1 parent 31e589f commit f89939c

File tree

2 files changed

+15
-31
lines changed

2 files changed

+15
-31
lines changed
+13-30
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
11
#import "../gql/fragments/Image.gql"
2-
#import "../gql/fragments/collections/AllFpb.gql"
2+
#import "../gql/fragments/collections/AllFTVAFpb.gql"
33

4-
query GeneralContentDetail($path: [String!]) {
5-
entry(section: "generalContentPage", uri: $path) {
6-
... on generalContentPage_generalContentPage_Entry {
7-
id
8-
title
9-
slug
10-
uri
11-
button: buttonUrl {
12-
... on buttonUrl_button_BlockType {
13-
id
14-
buttonText
15-
buttonUrl
16-
}
17-
}
18-
summary
19-
heroImage {
20-
... on heroImage_heroImage_BlockType {
21-
id
22-
image {
23-
...Image
24-
}
25-
}
26-
}
4+
query FTVAGeneralContent {
5+
entry(section: "ftvaGeneralContentPage") {
6+
title
7+
formattedTitle
8+
imageCarousel {
9+
...on imageCarousel_imageCarousel_BlockType {
10+
image {
11+
...Image
2712
}
28-
parent {
29-
slug
30-
title
31-
uri
32-
}
33-
...AllFpb
13+
creditText
14+
}
3415
}
16+
...AllFtvaFpb
17+
}
3518
}

pages/[...slug].vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// TODO: remove when we have implemented component library as a module
44
// https://nuxt.com/docs/guide/directory-structure/components#library-authors
55
import {
6-
BlockTag, ButtonDropdown, CardMeta, DividerWayFinder, FlexibleMediaGalleryNewLightbox, FlexibleBlocks, NavBreadcrumb, PageAnchor, ResponsiveImage, RichText, SectionTeaserCard, SectionWrapper, TwoColLayoutWStickySideBar
6+
TwoColLayoutWStickySideBar, NavBreadcrumb, ResponsiveImage, RichText, PageAnchor, FlexibleBlocks, SectionWrapper,
77
} from 'ucla-library-website-components'
88
99
import { onMounted } from 'vue'
@@ -112,6 +112,7 @@ onMounted(() => {
112112

113113
<section-wrapper class="section-banner">
114114
<code>{{ page }}</code>
115+
JEN JEN JEN
115116
<banner-header
116117
v-if="page && page.heroImage && page.heroImage.length == 1"
117118
:media="page.heroImage[0].image[0]"

0 commit comments

Comments
 (0)