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
3 answers

gatsby-source-contentful options error on build

some time back I made a site with Gatsby and I've used static markdown for my pages. Now I wanted to move all my posts on Contentful and everything works fine in development. When I went on Netlify to deploy my website it threw me an error. I've…
John
  • 151
  • 1
  • 1
  • 8
3
votes
2 answers

Importing Data to Contentful programatically from a json file

I am trying to import some data programatically into contentful: I am following the docs here And running the command inside my integrated terminal contentful space import --config config.json Where the config file is { "spaceId": "abc123", …
Theorder
  • 669
  • 2
  • 9
  • 19
3
votes
1 answer

Deploy Gatsby + Contentful website to Netlify

I've built simple blog website using Gatsby and Contentful CMS. Now I am gonna deploy it to Netlify but met a build error.
Gregory
  • 149
  • 1
  • 10
3
votes
2 answers

How to properly search in a list in ReactJS

I am trying to set a simple search operation in a user interface as shown below: I have a total of 70 react-strap cards and each card contain a vessel with name, type and an image. I would like to search the name of the vessel and have the card…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
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} } …
3
votes
1 answer

Creating excerpts using Contentfuls rich text react render

I am figuring out how to bring an excerpt into my site, using the Contentful Rich Text React Renderer. I am struggling a little this is the first time I am using it. I have used MD in the past with contentful, but due to users i require rich…
mrpbennett
  • 1,527
  • 15
  • 40
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…
3
votes
1 answer

How to query for a image in a rich-text field in Contentful

I'm learning Gatsby by building a blog using Contentful as CRM and I'm in doubt how to use it together with gatsby-images to show images into the body of a rich-text field, been searching the internet and still didn't found a good example on how to…
3
votes
1 answer

How to call and use embedded assets from Contentful Rich Text fields using Gatsby?

I am using Gatsby as the starter for my react app. To handle content I am using Contentful. In my Contentful Content Model, I've created the following content types: Short Text Short Text Media Rich Text Rich Text Using Gatsby's…
Ryan Brooks
  • 101
  • 2
  • 8
3
votes
2 answers

Gatsby error Cannot read property 'fixed' of null

I want to show my Products in the Menu section of index page . I try to display content such as text and images from contentful API but I get this error: TypeError: Cannot read property 'fixed' of null …
Morez Dev
  • 121
  • 5
3
votes
1 answer

Contentful search for field which value also has a field

Let's say for example I have multiple movies listed on my contentful backend and I only want a query to return horror movies so I filter by category. 0:fields{ name: "Some horror movie" category: {sys: {…}, fields: {…}} // fields contains…
jasper
  • 937
  • 1
  • 9
  • 22
3
votes
1 answer

Contentful: Configure Webhook Payload to Include Reference Field Properties

Say I have a Content Type Book with a text field Title and a reference field Author, which in turn has it's own fields Name (text) and Headshot (media - image). I want to set up a webhook that fires whenever a Book is created or updated, and I want…
dougmacklin
  • 2,560
  • 10
  • 42
  • 69
3
votes
1 answer

Contentful query content type and filter on reference (multiple)

Within Contentful i have the content type "post". The post can have multiple categories (another content type). Now i'm trying to query the posts but filter them on category. My query looks something like…
LVDM
  • 444
  • 2
  • 23
3
votes
1 answer

Jest Testing with React Native and Contentful

I am trying to test my React Native Application with Jest. I am using Contentful as a CMS to hold my backend information. I am currently trying to test that I am initializing the correct client. Here is the code I used to initialize the client: var…
user9560875
3
votes
1 answer

Bullet points and Check boxes not working for markdown

Scenario: I'm having an Angular 4 application where I use contentful as the content management system. So in contentful they have a feature to use as a markdown. In markdown as mentioned for single page applications, it is integrated and using the…
Lakindu Gunasekara
  • 4,221
  • 4
  • 27
  • 41