Questions tagged [contentful]

Contentful is a cloud based CMS framework using a RESTful JSON API.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

Visual Builders for Contentful [closed]

Are there any good visual builder options for Contentful? I like the CMS and would like to stick with it, while adding a little bit of visual builder support if possible. Unfortunately Shopstory is ...
Jaden's user avatar
  • 1
0 votes
0 answers
7 views

Looking for the html view of the rich text field within contentful, as creating text lacks control and generates unwanted markup

I'm wondering if there is a html view within the rich text field of contentful because i cannot find it I am getting a lot of unwanted markup as you can see in the image and want to have some more ...
Lalablala's user avatar
0 votes
1 answer
27 views

Contentful PHP API: how to get just one single entry?

I'm using this code to get all my content in Contentful (they are projects and within each project a gallery of images) for a simple portfolio website. $client = new \Contentful\Delivery\Client('xxx-...
Francesco's user avatar
  • 25k
0 votes
1 answer
70 views

How to define the most efficient locator for element in DOM using Playwright

I am adding Playwright tests for a site with multiple locales. Page content is mainly rendered via CMS content (I'm using Contentful). Using locators with hardcoded text, such as await page.getByLabel(...
Captain flapjack's user avatar
0 votes
0 answers
45 views

GraphQL query: how to map a list of ids to the corresponding entities?

I am using Contentful's "GraphQL Playground". I have a field that contains a list of id's: I'd like to retrieve the entities corresponding to those id's. I can do it with a second query: ...
Marco Faustinelli's user avatar
0 votes
0 answers
8 views

Contentful SDK provider component

using tag in nextjs showing an error in console like ---> "client.js:1 Cannot use App SDK outside of Contenful: In order for the App SDK to function correctly, your app needs to be run in an ...
Arunkumar T R's user avatar
0 votes
1 answer
18 views

Website alternatively showing error on Netlify (Contentful + Next.js)

I have deployed a Next.js (V14) + Contentful website on Netlify All my builds are working But my front page randomly shows either ok or shows a element with some text inside Here is a snapshot of the ...
Jérôme Dicharry's user avatar
0 votes
1 answer
27 views

How to map component after API call has been made?

I'm using Contentful in ReactJs to pull through a content_type of "blogPost", which has two posts. I can retrieve the object and store it to a variable, but when trying to map this to a ...
Kieran's user avatar
  • 1
0 votes
0 answers
27 views

Getting 404 on all pages when deploying Contentful + NextJS project in AWS Amplify

Getting 404 on all pages when deploying Contentful + NextJS project in AWS Amplify https://github.com/imsraja/yes2cloud-blog is where the repo is stored. Amplify successfully deployed but getting 404 ...
Suresh Raja's user avatar
0 votes
0 answers
33 views

Images and other assets not showing from Contentful CMS API

I'm working on a blog with Astro and Contentful. The content is a rich text field I'm using the contentful/rich-text-html-renderer package to parse as shown in the Astro docs: <article set:html=...
Kolade Chris's user avatar
0 votes
0 answers
20 views

Invariant Violation: Encountered an error trying to infer a GraphQL type for: `tags___NODE`

I am new to Gatsby. I'm creating a blog site using Gatsby and Contentful as CMS. On creating a field 'timeToRead' I'm getting an error as ERROR #11321 API.NODE.EXECUTION "gatsby-source-...
Krishna Kolte's user avatar
0 votes
0 answers
22 views

Unable to Retrieve Inline Styles and Background Images from Contentful in Angular Application

I am working on an Angular application that fetches content from Contentful, where I have input fields to insert HTML code. My goal is to display this HTML content on my website, but I'm encountering ...
keanu.b's user avatar
  • 443
0 votes
0 answers
14 views

Gatsby ,GraphQl content mapping bug

I am using Gatsby, GraphQl, and contentful. In my project i am trying to connect specific banner section to specific page (like home page should have banner of home and similarly for about us page and ...
Yogiraj Pradip Patil's user avatar
0 votes
0 answers
29 views

TypeScript Error with 'react-on-screen' in a Next.js Project | Not a valid JSX element

I'm encountering a TypeScript error when trying to use the react-on-screen package in a Next.js project. The error occurs when I run yarn build. Type error: 'TrackVisibility' cannot be used as a JSX ...
user2494849's user avatar
0 votes
1 answer
38 views

Contentful Only Showing 40/80 Entries on NextJS App

I'm using Contentful as my CMS and NextJS on Vercel to display the content. I'm trying to figure out how to pull unpaginated entries from Contentful. I set the limit to 100, but I'm still only getting ...
Davina Leong's user avatar
0 votes
1 answer
48 views

Nuxt3 loading Contentful data

In Nuxt 2 project I used Contentful for CMS data, it provides a client which you configure using method const api = createClient(api_token, ...) and then can do something like api.getEntries(...
irwin's user avatar
  • 117
2 votes
1 answer
106 views

New Content from Contentful not Showing on NextJS App

I'm using Contentful as my CMS and NextJS to show my content. My NextJS app is hosted on Vercel. I'm using NextJS 13 with AppRouter. The thing is I'm not sure how to get new content on Contentful to ...
Davina Leong's user avatar
0 votes
0 answers
16 views

Contentful preview api using angular project

Please let me know how to use preview functionality with preview token using Angular. Found preview api using next js but looking for angular Found way using next js but looking for preview with ...
balaji's user avatar
  • 293
0 votes
0 answers
20 views

Migrate assets that are already in contentful to Bynder?

Is there a way to migrate the assets that i have on contentful to bynder with script code? I know that contentful has a migration script docs and i tried to do something like this that its an example ...
Pool Ortega's user avatar
0 votes
1 answer
94 views

My props in NextJS keep returning undefined

I'm trying to setup a connection with Contentful. The connection seems to work and isn't the problem, but once I try to transfer the data via the props I keep getting 'undefined'. I've stripped down ...
SrRazer __'s user avatar
0 votes
1 answer
32 views

Next Image with contentful asset 502 in upper envs

When I try and load an next image using a contentful image source in upper environments it gets a 502 error. I have updated my next config with remotePatterns to handle this but it still gets a 502. ...
Hudson Basso's user avatar
0 votes
0 answers
301 views

How to properly use URL filtering with Next.js 13

I need to implement URL-based filtering in my application. My plan is to use a SSR (render, fetch and cache the data on the server-side) I've created a static route that receives the query parameters ...
Filippo's user avatar
  • 11
0 votes
1 answer
37 views

No reference fields in the node object that Contentful Rich Text receives from Gatsby and GraphQL

I'm using Gatsby 5 and contentful/rich-text-react-renderer. I have a ContentfulPost type that has some links to related types within the rich text. I'm following the docs (from Gatsby and Contentful), ...
Cmorales's user avatar
  • 968
0 votes
0 answers
76 views

Failed to import node.js version of contentful.js in Hydrogen/Remix

I'm trying to import contentful.js with import * as contentful from 'contentful'; in Remix but getting the error below. I'm doing this import in server.ts in order to add the contentful client to the ...
Bashar's user avatar
  • 383
0 votes
0 answers
20 views

Render image from Contentful to Netlify

I have a problem displaying the images I upload to contentful on my angular site. From the browser console the image is correctly loaded but I see a blank image on the screen. The problem is ...
Matteo Rossi's user avatar
0 votes
0 answers
24 views

Render image from Contentful to Angular

i have a problem displaying the images i upload to contentful on my angular site. From the browser console the image is correctly loaded but I see a blank image on the screen. Below my code: ...
Matteo Rossi's user avatar
0 votes
0 answers
86 views

NextJs best way to call layout and dynamic menu form api

I am new to Next.js. I need to load a certain set of data in the header and footer from Contentful's GraphQL using '@graphql-codegen' to generate a GraphQL SDK. I tried using 'getInitialProps', but ...
Anish Manchappillil's user avatar
0 votes
0 answers
64 views

Next 13, Contentful - How to fix Unhandled Runtime Error TypeError: Expected parameter accessToken?

Im using Next 13 and Contentful as my cms, I'm trying to define const client and export it So that I won't have to define it in every other backend file. example contentful.js import { createClient } ...
Kris Porovarde's user avatar
0 votes
0 answers
43 views

Error 500 Internal in [slug] from +page.server.js in Sveltekit

I have a blog website and I fetch the data from contentfu.js and everything is okay in localhost The problem is when I reload a post page it shows the content when I click on the link in the deployed ...
Eyad Farah's user avatar
1 vote
0 answers
68 views

TypeError: fields.map is not a function with next-sitemap for Contentful dynamic sitemap

I get this error when accessing the dynamic Contentful sitemap for my NextJs site with next-sitemap. error Error [TypeError]: fields.map is not a function I used this blog starter https://github.com/...
mettamyron's user avatar
0 votes
1 answer
103 views

NodeJS with Contentful code does not work

I am using the below code to display content (of type "course"), but when I hit http://localhost:3000/api/courses, nothing happens the browser keeps rotating forever and there is no error ...
user2368975's user avatar
0 votes
1 answer
116 views

AWS Sync S3 on Github Workflow - Only overwrite one folder

At the moment I have a Github workflow that when it runs it syncs the entire project to my AWS S3 bucket, deleting the previous version. I want to change this now to only overwrite one folder in the ...
user2953989's user avatar
  • 2,849
0 votes
0 answers
67 views

Getting 502 on Contentful request when deploying dockerized nextjs app

I'm trying to deploy a dockerized nextjs application but since I added Contentful to my app, the deployment fails on it's request. Error: ApolloError: Response not successful: Received status code 502 ...
Reza Ghorbani's user avatar
0 votes
0 answers
29 views

Partial Search Issue with Slashes in Contentful API and GUI

I'm facing an issue in Contentful when performing partial searches involving slashes ("/") across various APIs, including GraphQL, the Content Delivery API (CDN API), and the Contentful GUI. ...
Pau Teruel Soldevila's user avatar
0 votes
0 answers
303 views

Get Data From Contentful with Next.js 13

I try to get my first data from contentful cms with next.js 13. Unfortunately the below code returns always undefined in the console.log(recipes). I think this code worked in an older version of next....
Karl's user avatar
  • 79
0 votes
1 answer
40 views

Contentful/Gatsby Error - Interface field HomepageImage.gatsbyImageData expects type JSON but ContentfulAsset.gatsbyImageData is type GatsbyImageData

I'm working on a site using the Gatsby Starter Contentful Homepage that was build about a year ago - https://www.gatsbyjs.com/starters/gatsbyjs/gatsby-starter-contentful-homepage While attempting to ...
Tim Semple's user avatar
0 votes
1 answer
35 views

How is ApolloClient losing this data?

Using ApolloClient - the client is making a GraphQL request to Contentful for a reasonably complex query (altho only 1021 query cost) - it is a 'page' with sections of various types, and some of the ...
Ollywood's user avatar
  • 551
0 votes
1 answer
56 views

gatsby contentful rich text raw is undefined

In Gatsby trying to make a simple website. In my particular example I have a node with a rich text field from Contentful. It simply says one plain text sentence. {renderRichText(event.description.raw)}...
Kyle Calica-St's user avatar
0 votes
0 answers
29 views

Update Apollo Schema after Contentful Content Model Changes

So I watched this tutorial on how to use Contentful & ApolloGraphQL to be able to display data on iOS. After finishing the tutorial I wanted to play around with it some more. In the tutorial it ...
Luis Ramirez's user avatar
0 votes
0 answers
32 views

Contentful Delivery API - Cannot create new instance of custom model

I have some content types defined in a contentful space and I am trying to fetch some content I've created. These are the contentTypes I've created: { "name": "Configuration", "description": "...
Akinn's user avatar
  • 1,936
0 votes
0 answers
66 views

Render span element with className attribute in contentful rich text with nextjs app

I want to render contentful richText that contains a span with className attribute(eg: className = 'blue') in react app so i can apply that class to a certain segment of title text. How can i achieve ...
zoran lazarevic's user avatar
1 vote
1 answer
752 views

How to correctly use Contentful Typescript generics

I have been trying to get Typescript to work using contentful JS library. The documentation is unclear and there are no good examples which show it working in practice. Even the "demo video" ...
Richard G's user avatar
  • 5,373
2 votes
1 answer
261 views

How to use interface to make API responses type safe/declared? TypeScript

I am using TypeScript and Contentful in the same project and am having issue getting my head around how to map out the API response within an interface in a way that is clean and sensible and dynamic ...
michaelNL's user avatar
0 votes
1 answer
42 views

Import contenful model from diferent spaces

I have a contentful model on one contenful space and I need export to another contenful space, Is this possible? there is any tool for this??? thanks in adveced there is a graphic tool? I trie on the ...
Rodolfo Rodriguez's user avatar
0 votes
0 answers
78 views

How do I extend a field in a complex interface? TypeScript

I have a large interface with a lot of nested objects as it is mapping out the response from the Contentful API. I want to be able to extend it for when I get different content types - which means the ...
michaelNL's user avatar
0 votes
0 answers
135 views

Page not found when activate locale in next.js when redirect to other page

i just using localization with middleware from next.js doc. its work fine when run to / page. but when i move or redirect to other page it said "404 Page Not Found" Here is my next.config.js ...
Sulthon Maulana Fathuddin's user avatar
0 votes
0 answers
26 views

How do I Eliminate render-blocking resources for my wp website please?

My site is really slow and it says its because of a large contentful paint2.2s. can anyone help please. I have no knowledge of programming but have built my site using wp and youtube help videos, but ...
Lyn's user avatar
  • 1
0 votes
1 answer
91 views

Do I need Contentful API key in runtime?

As a DevOps guy, I've got a JavaScript application, that uses Contentful. During the build time I need an API Key to get some pre-compiled static data and save it in an output directory along with the ...
Michael A.'s user avatar
  • 1,091
0 votes
1 answer
64 views

GraphQL Query error with Contentful and Netlify

I'm not an expert coder but have this error in my Netlify Account where I am trying to update code and such and keep getting this error on my builds. The error is : GraphQLError: Field "...
ironcove's user avatar
0 votes
0 answers
10 views

Is any function for contentful in python

How to convert contentful.content.entrytype object into json formate in python ? I am irritating that object but not able to fetch. I tried to fetch data through entries function by passing ...
SADANAND PANDEY's user avatar

1
2 3 4 5
18