Questions tagged [contentful-api]
83 questions
3
votes
0 answers
How to avoid Contentful rate-limit exhaustion DoS
We are building a public web app and have created custom API's that call out to Contentful to get various content entries like news articles.
Some of our API's take the entry ID - ex 1m21P91ZPgQyJpT6Ck7oku - as a parameter (typically as part of the…

Andreas Warberg
- 542
- 6
- 12
3
votes
0 answers
Next.js does not delete dynamic page deleted in CMS
I am using next.js 10 and have a [slug] page which creates dynamic pages from Contentful CMS.
I am changing the slug inside CMS and run next dev the old slug correctly returns 404 and the new slug works.
However when I build and run next start the…

jeff
- 1,169
- 1
- 19
- 44
3
votes
1 answer
Contentful graphql api not fetching localized `linkedfrom` items
Basically I want to get localized values for the entries linking to my unique entry.
movie(id: $movieId) {
linkedFrom {
spanishMovieLocations: movieLocationCollection(locale: "es-ES") {
items {//fields with localized values}
}
…

Carson Schwalm
- 31
- 1
3
votes
1 answer
Export selected content models and their content to another space in Contentful
I have two content space QATesting and Development. I've created 3 new content models and contents in Development. The names of new models and their content type ids are User Care Tips (userCareTips), User FAQ (userFAQ) and User Demo (userDemo). I…

Francis F
- 3,157
- 3
- 41
- 79
2
votes
1 answer
Contentful migrations: How to migrate a link to an asset?
I have a content type 'blogpost' that currently contains a reference to another content type called 'image'. The content type 'image' has a link to an asset, an image file.
Now I want to create a migration script where I link directly from the…

Bjarte Aune Olsen
- 3,230
- 4
- 24
- 36
2
votes
0 answers
Query Gatsby Image Data from contentful from the client
spent some hours combing the web for an answer and beginning to sense this is not possible.
I am using the new gatsby-plugin-image with a V3 gatsby site with no issues using getImageData() in my build time queries (via import {graphql} from…

Michel
- 46
- 2
2
votes
1 answer
How do I loop different sections inside a contentful landing page with php
Using the php SDK, I would like to get all the content for a landing page, this will include sections with different content types / components with different fields per entry.
eg.
Section 1 - hero
Section 2 - article
Section 3 - image
Q. How do I…

Jeff
- 947
- 2
- 9
- 23
2
votes
1 answer
How to place dynamic value in contentful?
I am using contentful. In one of the content model, I want to display dynamic value based on the option selected.
e.g. In contentful, I am having message as: Congratulations, your account has created successfully.
I have options as…

Trupti
- 843
- 2
- 11
- 28
2
votes
2 answers
Contentful Content Management API Error 422 When Creating Asset
I am trying to create and publish an image as an asset using the Contentful Content Management API and have been unsuccessful so far, I have been able to successfully create and publish an entry and I cannot figure out why asset is not working. Here…

themetzmeier
- 83
- 8
2
votes
0 answers
Switching contentTypeId while fetching data from Contentful
I'm trying to display some FAQs content in my app using contentful, below is my UserFAQs.swift class which I'm using to fetch the data and this works fine. Now I have a new requirement for adding FAQs for guest user. Only the data is different per…

Francis F
- 3,157
- 3
- 41
- 79
1
vote
0 answers
SwiftUI & Contentful Client Error: Type of expression is ambiguous without more context
The code below shows the code I am using to fetch data from Contentful API to my SwiftUI app. However, by calling the function client.fetchArray, I got an error message saying that the type of expression is ambiguous. I tried look up the…

yitak lee
- 11
- 1
1
vote
1 answer
How to get specific entries in Contentful
So I want to know how I can get all the entries where my sessionId equals to (for example: 4).
public async Task Index(int? session)
{
var cardio = await _client.GetEntries();
//…

StrikeHacks
- 11
- 1
1
vote
1 answer
Contentfull Api filter nested collection
I have been using Contenfull to create a custom app.
Now the problem that I'm having is I can not see how can I query a nested collection
I have the following entry
query cfPageList(
$contentfulLocale: String
$entryId: String!
$preview:…

Loki
- 1,064
- 2
- 26
- 55
1
vote
1 answer
Contentful: Auto-generate title from fields
Contentful requires internal titles for each content entry to be determined in the related Content Type. This is for organizing content entries and making it easier to find them. These internal titles currently have to be filled out manually be the…

nerdess
- 10,051
- 10
- 45
- 55
1
vote
1 answer
TypeError: Cannot read properties of undefined (reading 'createClient') in react + contentful
In my node project contentful is running same lines with my react project. But in react gives me an error, in the image below. I tried to reinstall again but it doesn't work. Did I miss something? Any help is highly appreciated.
Thank you

Aljohn Yamaro
- 2,629
- 25
- 22