I have some popups for my website and I want to add them to the desired buttons.
I used the Link type for it but don't know how to Link my different popups to the different button on the whole website.
I want to let the user on Prismic for content creators to Add any popup he wants on his choosed buttons.
What should I do for this approach?
Welcome to the Prismic community,
It seems what you would need a none repeatable group field with 2 content relation relationship one for the button link and one you can link to the popup document.
does this solution respond to your query?
Looking forward to your reply,
You can actually just link to the popup document and then create a custom Link component to see if the linked document is a popup. If it is, open it instead of resolving the link.
This is actually how the Popup on the Prismic's homepage functions - https://prismic.io
I might create an article in the near future about this.