Hello!
I am using Slice Machine and Next.Js.
While working there, I've organized the contents by using the Prismic Tab feature. Like below Image (Main and CTA)
When fetching the data, there are 2types of slices in data.
Currently, the first slices
data reflects the site but the sencond slices2
doesn't reflect.
How can I handle this problem?
Phil
(Phil Snow - (On holiday, tag @Prismic-Support-Team for help))
October 20, 2021, 10:54am
#3
Hi Yurii,
Because you've created 2 Slice Zones in your document, you'll need to add 2 SliceZone
components in your code and pass the Slice data as so:
<SliceZone slices={props.data.slices} resolver={resolver} />
<SliceZone slices={props.data.slices1} resolver={resolver} />
Thanks.
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
October 21, 2021, 11:19am
#5
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.