Questions tagged [contentful-management]

contentful-management is the SDK for the Contentful CMS SAAS

79 questions
0
votes
1 answer

"Entry must have a space associated" error thrown when updating an Entry via Contentful Management API

I'm trying to update a field of an entry in contentful, but this error is thrown each time: java.lang.IllegalArgumentException: entry must have a space associated. …
Ojonugwa Jude Ochalifu
  • 26,627
  • 26
  • 120
  • 132
0
votes
0 answers

Issue uploading an image to Contentful via the Content-management api

I am building a react native app for iOS devices, where we use Contentful as the related Headless CMS. Within this app there is a form to upload a case study which includes an image selected from either the camera or the device gallery. The…
0
votes
0 answers

Creating a Contentful Entry using Curl

I am trying to test if the API works in Postman before using the code in my React project. The code is as follows (sensative data has been replaced): curl --location…
0
votes
0 answers

How create folder (view) in contentful CMA

I need to create an editors view to organize my posts and then add the users Can someone help me thanks Create folder to organize my contents in framework contentful
0
votes
1 answer

Contentful - Creating and Referencing newly created entries to one another

I'm using the Contentful API PHP SDK library and through this API am creating a few different Entries which are going to reference each other. I'm able to create the different entries, I'm able to edit text fields within them, both at the point of…
Duniyadnd
  • 4,013
  • 1
  • 22
  • 29
0
votes
0 answers

How to create proxy redirects in Netlify dynamically for Contentful assets

How can I create a dynamic proxy for all the assets uploaded in Contentful in netlify.toml file. Ex- I want to create proxy like example.com/image/Banner.jpg which should point to Contentful Banner.jpg file, I want to create proxy redirects…
0
votes
1 answer

How to create short URL for Contentful assets

I want to create a short URL for assets on Contentful, like example.com/image/Image1. Currently the URL I am getting from Contentful is a very long URL like images.ctfassets.xxxxxxxxxxxxxx85514b430c28045a3b2930ebeXXXXX/abc.jpg. Is there some…
0
votes
1 answer

Invalid patch error in Contentful CMA client

I am trying to populating an empty field by using patch method in Contentful. The following piece of code works in one cloned environment but does not work in another. let patchData: OpPatch[] = [ { op: 'replace', path:…
0
votes
1 answer

Not able to iterate over object using map

I am trying to render a table using a data collection "Posts". I want to use the map method returns a new array by applying the callback function on each element of an array, while the forEach method doesn’t return anything. Could someone shed a…
0
votes
0 answers

Contentful GraphQL filter for filtering entries by linked references

I read this blog post which shows how to filter entries by linked references in contentful Graphql. https://www.contentful.com/blog/2021/06/15/filter-entries-by-linked-references-in-graphql-api/ But i can't do as it says. Graphql playground only…
0
votes
1 answer

Contentful and get all city pages links that are in a particular state

I'm having a devil of a time modeling things in Contentful. I did the tutorials, but still don't even know where to begin. I sell tutoring services, brokering, in many states. So, I want to display, on front page, all the states... but when click,…
james emanon
  • 11,185
  • 11
  • 56
  • 97
0
votes
1 answer

Contentful - How to change the field value from the React/Node.js environment?

Is there any way to change the value of some fields in a Content Type on a specific Entry from an React application. I want to simulate the like/dislike button. So when the user clicks the button, I want to change the specific value in the CMS on a…
Samke11
  • 385
  • 5
  • 17
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…
0
votes
1 answer

Add sys date properties in migration from old database to Contentful

I'm migrating an ancient blog from PostgreSQL to Contentful. I'd like to use data from the old blog posts to fill in Contentful entries' sys.createdAt, sys.updatedAt, sys.publishedAt, and sys.firstPublishedAt. I've read through: the Content…
nusantara
  • 1,109
  • 1
  • 15
  • 38