A developer-friendly CMS backend
Questions tagged [prismic.io]
178 questions
0
votes
1 answer
How to use a timeline ref with @prismicio/client library in Next.js/React
I'm using the @prismicio/client library to fetch data from Prismic inside my Next.js app, but I can't figure out how to connect the preview mode and the preview ref it provides to the client.query call in order to fetch data for that specific…

Andrei Flavius
- 93
- 1
- 6
0
votes
1 answer
What's the Contentful equivalent of "slices" in Prismic?
Does contentful offer a way to create reusable custom components?, I've looked around and it seems they only offer content types which are like entire page templates. In their article on migrating from Prismic to Contentful they mention that slices…

Samuel Anyanwu
- 295
- 3
- 12
0
votes
1 answer
How to Query Images via GraphQL with the gatsby-plugin-image plugin
Hi I'm using Prismic as a Headless CMS and want to Query out images within the gatsby-plugin-images plugin. Unfotunatly I got no error message or anything else, its just not working.
class Index extends Component {
render() {
const {
…

Martin Bock
- 3
- 3
0
votes
1 answer
Any way to add a key value pair object in Prismic.io Custom type?
Prismic's documentation is a bit fuzzy, and their community form isn't really being super responsive, so I figured I'd also ask here. In the Custom Type I have (Product), I'm hoping to create a Group repeater of (variants) that I can use to specify…

Joel Hager
- 2,990
- 3
- 15
- 44
0
votes
0 answers
Where do you put 'modules: true' in next.config.js?
I have tried everything to get next-slicezone to work in my project, and support has told me to put 'modules: true' in my next.config.js file, but no matter where I put it, I still get this…

Joel Hager
- 2,990
- 3
- 15
- 44
0
votes
1 answer
Next-Slicezone 'module parse failed' when using with Prismic.io
I'm not sure what I'm doing wrong, and the documentation is pretty spotty and nobody on Prismic's Community board is very responsive. I'm hoping somebody can help me here:
I'm trying to use slicezone for nextjs, and I'm following along with the…

Joel Hager
- 2,990
- 3
- 15
- 44
0
votes
0 answers
Generate sitemap according prismic data in Nuxt
I'm guessing some of you have some experience with generating Sitemap for your project.
I'm having a Nuxt ( SSR full static ) project.
I'm using @nuxtjs/prismic
and @nuxtjs/sitemap module.
The sitemap module does not generate dynamic pages therefor…

mart cube
- 633
- 1
- 15
- 30
0
votes
1 answer
How can I render tags from Rich Text Editor in Prismic React Client?
I am Working on a Prismic React Project, In which I need a functionality to show tooltip from rich text editor which is expected to show from the nested tags in Rich Text editor.
A little bit help will be of lot of beneficial to us.
This is the…

Mahesh Singla
- 11
- 1
0
votes
1 answer
How to modify a long paragraph string and insert html tags into it based on a list of modifiers?
I am working with a Python backend and the prismic.io CMS to create a blog.
When I call the Prismic API I get a JSON response with the content.
For paragraph type content Prismic responds the following way:
The paragraph modifiers are located…

Aivoric
- 838
- 2
- 10
- 24
0
votes
1 answer
NextJS & Prismic - How to prevent /:uid from rendering homepage
In the prismic docs the default setup they teach means that your homepage and every other page on your site is the same type.
This means that in that default setup the routes / and /home both render the homepage.
Is there a way to prevent the /home…

Hades
- 1,975
- 1
- 23
- 39
0
votes
2 answers
Prismic Integration Field: Not possible to receive Shopify product metafields
I cannot fetch Shopify product metafields using Prismic Integration field via GraphQL API.
What I did:
Created a document with Integration field https://prnt.sc/11dima8
Tried to fetch the product data via GraphQL API, but product metafields are…

Yaroslav Draha
- 455
- 4
- 12
0
votes
2 answers
In which cases is it recommended to use the approach Headless CMS + separated frontend?
I have to build a website that features:
10.000 views/month
5-6 content post types
100-200 entries
many images
the client will add/update/handle entries like 1 time a week
Until here I used Wordpress with custom theme but now I was thinking to…

Fred K
- 13,249
- 14
- 78
- 103
0
votes
1 answer
Reusing GraphQL fragments
I am using Prismic, and I have two identical custom types, one is called Content and one is called Theme. Their data is identical so I would like to reuse my fragments, is it possible?
An example fragment looks like:
import { graphql } from…

fuzz
- 195
- 13
0
votes
1 answer
prismic - How to qgl select based on length or NOT NULL
Since prismic has no concept of required fields, we might end up with null instead of data.
I am looking for a way to pull prismic data in gatsby app, filtering out unwanted entities.
the SQL idea
SELECT *
FROM allPrismicAnnouncement
WHERE quote IS…

Lev Savranskiy
- 422
- 2
- 7
- 19
0
votes
1 answer
Data not being passed from state to props on GET request
I am making a blog using NextJs and Prismic CMS. On page load data is displayed and passing data from through and finally to .
On a loadmore button, a call is made to get the next round of posts to display, but when…

moody1208
- 437
- 1
- 4
- 19