A developer-friendly CMS backend
Questions tagged [prismic.io]
178 questions
0
votes
0 answers
Types not working on the rich text editor's components
Using the Prismic Headless CMS is great. But it lacks more info on how to define types using the rich text editor. Using "@prismicio/types" to define types doesn't work and there is bare to the minimal explanation on how to use it on the git.…

Galanthus
- 1,958
- 3
- 14
- 35
0
votes
0 answers
Prismic Slice Variations update the json but do not generate a component
I'm using Prismic with Slicezone and for each component is generated a folder with component and json (with data model etc..).
I created a variant of a component, the json was updated but a component was not created.
How can I use this variant? Do I…

Luca Argentieri
- 21
- 6
0
votes
1 answer
Extract Prismic Obj from response to Angular 13 View as HTML
I've been looking at responses on this topic, and I'm having a hard time handling the response from a http call to the prismic api. I can get a response from the api, however,I'm have a hell of a time extracting. I'm newer Angular and Prismic, but…

user2920627
- 95
- 15
0
votes
1 answer
Nuxt3 and Prismic: dynamic [uid] page - content loads entering a page, but not through a link
If I come to a page by entering the url it loads the content, but if I go through a link on another page it doesn't - only shows the Navigation and Footer from default.vue layout.
Not sure what I am doing wrong (or missing)?
live demo:…

Tadas Majeris
- 361
- 2
- 4
- 12
0
votes
2 answers
Prismic asHtml() escapes HTML for rich text field in Astro
I am attempting to use Astro for the first time, and I am also attempting to use Prismic as the data source. In my Prismic project, I have a number of rich text fields, and I simply want to render them as HTML in my Astro component. Per the Prismic…

wonder95
- 3,825
- 8
- 45
- 74
0
votes
0 answers
How an I retrieve the same quality of an uploaded image from Prismic
i am trying to get some images with GraphQL , but the problem is I get low quality images ,
this is the query I am using :
I have tried all these , except localFile it returns null . how can I get the same image qualities from this CMS ?

Jaacoubi
- 97
- 6
0
votes
1 answer
The Prismic fulltext predicate keeps giving me errors about unexpected fields when I Use it to try to query
I am trying to query with the Prismic predicate.fulltext using Vuejs
this is the first time am using the predicate but the documentation about what the fulltext predicate needs seems to be confusing. Here is my code.
async searchByQuery(query) {
…

Chadere Oghenenyoreme
- 63
- 1
- 7
0
votes
0 answers
Next JS Issue with data from getInitialProps in _app.js "TypeError: Cannot read properties of undefined"
I'm having an issue displaying data pulled in (from Prismic) with getInitialProps in the _app.js file. I have followed the Prismic slice machine tutorial, which includes defining a header and navigation in Prismic and displaying that data on the…

JonQuayle
- 11
- 4
0
votes
0 answers
Using RichText in a map in React
Thank you so, so much for your time looking at this
I'm using React and Prismic
I'm trying to apply RichText (https://prismic.io/docs/technologies/rendering-the-rich-text-and-title-field-reactjs) to render the text but do not work on map.
My guess…

Rolanda
- 328
- 1
- 9
0
votes
2 answers
0
votes
0 answers
Refused to display video
I know that there is already an answer for this, but I have 'embed' in the URL and it is not working. I have tried using 'watch', I have copied the URL directly from the source, I have deleted all of the styles, etc. There are about 7 videos total…

Kassie
- 15
- 6
0
votes
2 answers
Adding a plugin to vite
I am trying out Vite and using it to develop a Vue app with Prismic Cms. In reading Prismic Doc's I see have to install dependencies
npm install @prismicio/vue @prismicio/client prismic-dom
Doc's then say you have to register it:
To use…

Alan
- 1,067
- 1
- 23
- 37
0
votes
1 answer
My custom Netlify serverless function won't fetch data from Prismic API
I'm trying to write a serverless function for Netlify that will essentially be fetch JSON from a Prismic API - the headless CMS I'm using.
The reason I'm doing this to eventually provide a Snipcart, a shopping cart, with a 'product URL' that it can…

Jack
- 41
- 4
0
votes
1 answer
Cannot get value form JSON object in a sveltekit loop
I am using SvelteKit to pull a Prismic object. If I query a single document, I can render the data out fine. However, if I query everything and try to itemize it out in a loop, I am unable to extract the text value from the object.
Stringifying the…

Carey Estes
- 1,534
- 2
- 31
- 59
0
votes
0 answers
Prismic: Is there a way to nest fields within another field?
In Prismic, I know that "type" : "Group" can be used to nest a repeatable group of fields. Is there a way to nest a non-repeatable group of fields? For example, let's say I'm creating a test with 10 repeating questions, but I only need to allow for…

M -
- 26,908
- 11
- 49
- 81