Use same slice with same data in two different pages

Hey,

There is something I'm not quite getting well with slices and Prismic.

I have a slice within a page which displays a list of posts.
The slice is named BonusCasino
The page is named Bonus with a uid bonus and has a Custom Type page
I typed in my data in this page and now I'd like to be able to use the BonusCasino slice with the exact same data in another page.

This page is called Black Jack (uid black-jack) and has the same Custom Type page
The problem I have is that if I want to use the BonusCasino slice in that page, I have to retype everything, and that's not what I want, cause I'd like to have the two BonusCasino slices synced.

I thought about creating a single Custom Type "BonusCasino" with the slice "BonusCasino" filled, and using it in my Next.js application in both my pages where I need it, but I don't think it's the right way of doing it.

Is there a way to achieve this ?

Thank you,

Hello @skery.antonin,

Welcome to the Prismic community, and thanks for reaching out to us :slightly_smiling_face:

You can achieve this by using Content Relationship; see the link to the Content Relationship docs below:

I hope it answers your questions, and let me know if you have any further questions.

Thanks,
Racheal.

1 Like