Questions tagged [contentful-api]
83 questions
0
votes
1 answer
Contentful: How to get an entry using nothing but one of its fields? Or, how to set the entryId in web app?
I am needing to make some sharable blog post URLs. To do that, the URL must be something like webpage.com/blog-post-title. It cannot be webpage.com/5GFd5GDSg2345WD.
Since I am using dynamic routing, I need to get a Contentful entry using nothing…

John Miller
- 388
- 2
- 8
- 23
0
votes
1 answer
Can we increase the `Short text, list field` limit in Contentful?
I am using Contentful to fetch some data for my website.
I have a productId field in Contentful for each entry which is of type Short text, list field. This field accepts product ids as comma-separated values.
ID1234,ID2343, ID2344, .......
But this…

Akhil Suresh
- 41
- 5
0
votes
1 answer
How to use contentful-management to add an asset to an entry in one api call?
I would like to add an asset along with an entry. I'm using a form to enter some data and upload an image all in one API call. I'm using cloudinary to store images, but Contentful-Management is giving me a 409 status code and a 'Version Mismatch'…

justkeithcarr
- 1,027
- 1
- 7
- 13
0
votes
3 answers
Adding installation parameters to a contentful App
Struggling to find a working example or a document that explains how to set contentful app installation params. I can see how to get them from the SDK but settings them i cant.
any help is much appreciated.

John williams
- 654
- 1
- 8
- 22
0
votes
1 answer
Contentful and Next JS - Issues with content not showing
So at the moment, I have a site I'm creating with Next Js on the front-end with contentful used as my CMS.
I have quite a few pages that use the contentful function to fetch the data:
export async function getStaticProps() {
const client =…

FamousLastWords
- 39
- 2
- 11
0
votes
1 answer
Routing not working using Gatsby - reach-router
I'm trying to render a blog as a card then open it up as a page , but its proving to be difficult using Gatsby. I did the exact same thing fine with react using React router but it doesn't seem to be working with Gatsby. I know I can use GraphQL…

Shuib Abdillahi
- 37
- 6
0
votes
1 answer
Contentful API with React how to get specific fields from array items instead of whole arrays
I'm was trying to look for ways to make my website load faster and after running speed tests I understood that I was making a mistake in the way I'm loading data from contentful. I have a page with all the blogs listed in it (with just their title…

Cassandra
- 147
- 1
- 2
- 15
0
votes
1 answer
How to resolve javascript error in UC Browser
I made a dummy shopping-cart site after watching a tutorial on it, the site functions well on all browsers I've tested it on except UC Browser pc version. It keeps sending back two errors in the console log;
Uncaught SyntaxError: Unexpected token…
0
votes
1 answer
Upload .txt file to contentful
I am trying to upload a .txt file from computer to contentful using contentful's python api. Here is the link to documentation
Below is my code
with open('/Users/p2335/Documents/Work/files/input/test.txt', 'rb') as file:
new_upload =…

user3435903
- 123
- 1
- 2
- 9
0
votes
2 answers
Is there any way to get content type's data (dropdown data)?
I'm working on contentful to create blog posts.
I have created a field named with category with dropdown data, like the below image.
I have created more blogs for each categories (Ex: game has 5 blogs, Tour has 10 blogs and etc).
I want to show the…

A.Gomathi sankar
- 109
- 3
- 11
0
votes
0 answers
Data offline persistence with Contentful in Android
Have anyone recently done offline data persistence with Contentful in Android app developed using Kotlin ? The Contentful official documentation and the linked sample projects seems no update for the past few years. Facing issues in…

Joseph
- 1,060
- 3
- 22
- 53
0
votes
1 answer
contentful graphql nested structure
I have a page in contentful which I retrieve content to my react app with graphql.
In this page, a link a content model called Person which is like that:
{
"name": "Person",
"description": "",
"displayField": "name",
"fields": [
{
…

Giorgia Sambrotta
- 1,133
- 1
- 15
- 45
0
votes
1 answer
I am trying to declare a variable to match Contentful posts that match true on a particular boolean field
I have built a blog with gatsby and Contentful and have a boolean field in the contentful posts to select if a particular post is "featured" or not. How can I declare the variable featuredPost to match posts which have the featured boolean set as…

Chege Tim
- 25
- 4
0
votes
1 answer
How can I fetch content from a single page throught Contentful API in a NextJS website?
I've found some guides here and there about sourcing from Contentful into NextJS, where you can feed a static blog with content. That's a starting point.
But as for single pages contents, I cannot reach any results using the API. Not sure…

Eduardo Oliveira
- 395
- 2
- 18
0
votes
1 answer
Getting "The body you sent contains an unknown key." when trying to create a Contentful entry
I have created a contentful model called "User" with two fields:
id - text, unique, required
email - text, optional
When I try to create a new entry via content management API using these parameters:
Headers:
X-Contentful-Content-Type :…

pvukovic
- 239
- 1
- 9