Questions tagged [contentful]
Contentful is a cloud based CMS framework using a RESTful JSON API.
874
questions
-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 ...
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 ...
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-...
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(...
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:
...
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 ...
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 ...
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 ...
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 ...
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=...
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-...
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 ...
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 ...
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 ...
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 ...
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(...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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), ...
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 ...
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 ...
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:
...
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 ...
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 } ...
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 ...
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/...
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 ...
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 ...
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
...
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. ...
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....
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 ...
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 ...
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)}...
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 ...
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": "...
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 ...
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" ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 "...
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 ...