Questions tagged [contentful]

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

Provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike many other content management systems, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management, and delivery APIs, and a customizable web app that enables developers and content creators to ship digital products faster.

859 questions
3
votes
1 answer

Gatsby Contentful search

I have a Gatsby project which uses Contentful. All good - I can retrieve blogs for example and display them. But if I want to provide a search facility to search through potentially 1000s of posts and display the relevant results - how can I do…
user2047485
  • 391
  • 5
  • 20
3
votes
1 answer

How to retrieve published post date from query in Gatsby with Contentful?

With this kind of request, pulling post data from Contentful with GraphQL using gatsby-source-contentful plugin, looking for a way to access the post published date (post.sys.publishedAt) or updatedAt ! { contentfulPost(id: { eq: 'postId' }) { …
wabdsgn
  • 71
  • 5
3
votes
1 answer

Updating Contentful entry with a link/reference field

The Contentful documentation is pretty sparse. I want to update a field on an entry that is a Link to another entry ("Reference" is what they call it in the CMS UI). Does anyone know what format they want this in when using the Contentful Management…
JLF
  • 2,280
  • 4
  • 28
  • 45
3
votes
1 answer

Has any one used Contentful with Unity3D as the front end?

For one of our HoloLens projects, we need to connect and get layout information from Contentful. Has anyone used the Contentful .NET SDK with Unity3D so far?
3
votes
1 answer

How can I get included objects in a contentful getEntry call using javascript sdk?

I see that I can pass a query object with include:2 in the getEntries method using the node.js javascript api. How can I do that with the getEntry call that returns a single object. // how do I get the nested objects by passing the parameter…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
3
votes
1 answer

Contentful: Return entries in a random order

Is it possible to return entries in a random order through a Contentful Query? Without specifying a "->where" parameter, it will sort the entries alphabetically. I've tried using shuffle() and array_rand(), however it doesn't recognise a…
thebfftim
  • 109
  • 1
  • 6
3
votes
1 answer

How monitor Contentful API usage?

Is it possible to monitor how many Contentful API calls are being made, and ideally receive a notification when a quota is about to be exceeded? Thanks
tarling
  • 1,887
  • 2
  • 19
  • 27
3
votes
1 answer

Automatically fetch assets from external source

I have a very basic question to Contentful CMS: Is it possible to configure a job in Contentful that automatically fetches images from external source? My first guess was webhooks, but I think they are just suitable to notify extern systems of a…
Blackvenom
  • 667
  • 6
  • 13
3
votes
2 answers

Contentful API query for array

I'm trying to do something through the Contentful API (npm module of the content delivery) and I'm not sure if it's possible. I have a content type tag in Contentful which has 1 field, also called tag. I then have another content type called article…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
3
votes
3 answers

TypeError: Converting circular structure to JSON - find error in json

I'm using Contentful with a MEAN stack. I query the Contentful API and get back a json object. contentClient.entries(query, function(err, entries){ if (err) throw err; console.log(entries); }); I've just been receiving the following…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
2
votes
1 answer

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 some sort as the API responses from contentful…
michaelNL
  • 45
  • 4
2
votes
3 answers

Fetch contentful asset inside RICHTEXT_OPTIONS with async await

I'm using contentful along with react. To render the content of an article i use the documentToReactComponent from contentful. when you pass this function an array of content coming from contentful along with some options, it goes through it and…
Redhewlett
  • 103
  • 8
2
votes
0 answers

How do I render embedded code blocks from Contentful with Prism in Astro?

I decided to try out Astro by building a web development blog integrated with contentful. I got everything working except for the code blocks. I create an embedded entry for the code block in my content model, which returns the following…
2
votes
0 answers

Nextjs and Image component getting Contentful CMS image.. larger kb in production than development

React/Next app on Vercel: Images are from Contentful CMS - all from master branch. In local development: (npm run dev) image sizes are less than 3x the size as when in production. In production Images in production are much much bigger, over 3x the…
james emanon
  • 11,185
  • 11
  • 56
  • 97
2
votes
1 answer

Adding Favicon.ico to Contentful or Gatsby website

I am trying to add a new favicon logo to a Gatsby site on Contentful. Do I put it in Contentful or in the code on Gatsby? Also with that being said, is there a way to make the Favicon animated as well?
JT Simon
  • 25
  • 4