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
5
votes
1 answer

Gatsby Source Contentful 4.x - Rich Text - changes to JSON

I'm trying to get the Rich Text from Contentful, but in the 4.x version of gatsby-source-contentful, the documentation no longer seems updated. It refers to the json, but it has changed to raw, which means I don't know how to proceed. This is my…
Mathias Riis Sorensen
  • 504
  • 3
  • 13
  • 34
5
votes
10 answers

Gatsby - The result of this StaticQuery could not be fetched

I have a Gatsby site that has been running smoothly for 3 months online. As of Friday 24th July I have started to receive the below result and users only see a blank screen. This is likely a bug in Gatsby and if refreshing the page does not…
5
votes
1 answer

Searching on multiple reference fields in contentful

I am trying to figure out how to retrieve specific articles based on author (reference), my current function retrieves all articles, but I only want the author specific ones const resp = yield client.getEntries({ 'fields.insightsArticle': true, …
Bram Wesselink
  • 127
  • 1
  • 1
  • 6
5
votes
1 answer

Return Vue Component in a custom rendering function for a contentful embedded entry

I'm playing with Contentful! and I'm having trouble with Rich text content field. I'm using '@contentful/rich-text-types' and @contentful/rich-text-html-renderer modules to customize the way this block is rendered and to display some assets and…
Wonderman
  • 931
  • 10
  • 21
5
votes
2 answers

Graphql contentful query with error 'cannot query field'

I'm using gatsbyJS with contentful. When I start to query any contentful content I don´t get the support from graphql. When I start to type "allContentful*" no contentful stuff appears: When i do a query, the query works. But the underline is red…
rubeonline
  • 1,230
  • 10
  • 18
5
votes
2 answers

Filtering Contentful Query on Linked Objects

I'm attempting to utilize Contentful on a current project of mine and I'm trying to understand how to filter my query results based on a field in a linked object. My top level object contains a Link defined as such: "name": "Service_Description", …
Khepri
  • 9,547
  • 5
  • 45
  • 61
5
votes
4 answers

Friendlier way to Retrieve Content Types with Contentful

I'm evaluating Contentful.com as the Content Engine for an Angular SPA. The issue I'm facing is with retrieving entries by content type (e.g. get all entries of type "blog"). As described in the documentation example, this is done as…
5
votes
1 answer

Contentful.com API order / sort query

For anyone who has experience using the contentful.com API, I'm trying to query and sort by field name and currently getting a "ServerError". An example of the query that's being generated against their example API (with "fields.name" as the…
Kevin Bluer
  • 235
  • 4
  • 8
4
votes
0 answers

How to order a linked collection with the Contentful GraphQL API

For the blog I'm working on I have a category page that lists all blogposts that are tagged with that category. Now I want to order those blogs by the createdAt date but I can't seem to find a solution how to order a linked collection with the…
4
votes
1 answer

Ordering posts in Contentful by date with different Content types

This is my first project using GatsbyJS and Contentful. Right now I have several posts on the site with different Content Models. For the sake of simplicity let's say I have some Content types that are Photos and others that are Video Embeds. I am…
4
votes
1 answer

gatsby-source-contentful is not working with gatsby-transformer-remark

I have successfully sourced data with gatsby-source-contentful, but can't figure out how to extend contentful queries with markdownRemark as it's shown in the official gatsby-contentful-starter. I added gatsby-transformer-remark in…
iamskok
  • 600
  • 5
  • 19
4
votes
2 answers

Display ContentFul RichText in Angular

I have a blog feed in my Angular App connected with Contentful. Thanks to the Contentful javascript sdk. https://www.contentful.com/developers/docs/javascript/tutorials/using-contentful-in-an-angular-project/ I'm trying to display the Title and the…
Kevin
  • 4,823
  • 6
  • 36
  • 70
4
votes
1 answer

Where to store information about executed Contentful migrations?

So our Contentful-based application has grown a little bit and we have to create content migrations for new features etc. And to prevent executing the same migration multiple times we think we must store info about executed migrations - but…
michalv8
  • 43
  • 5
4
votes
1 answer

How to include a carousel component in Gatsby with Contentful?

I want to include a image carousel in my Gatsby project. All images will be query from Contentful. I used "react-responsive-carousel" and managed to make it work with simply import images directly. I am also certain that I can pull in the…
Rico
  • 119
  • 1
  • 5
4
votes
1 answer

Get Contentful entry by ID and locale

The Contentful npm package provide access to all the functionality from the API. In my case, I know the ID for the entry I want, but need to retrieve the data for a non-default locale and I can't see any way to pass the locale option. My query looks…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
1 2
3
57 58