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

Displaying a collection of contentful rich text with Gatsby

I am building a Gastby project that uses Contentful to fetch data. In the following example I am trying to display a collection of rich texts. import React from "react" import { graphql, useStaticQuery } from "gatsby" import { INLINES, BLOCKS, MARKS…
2
votes
1 answer

Contentful migrations: How to migrate a link to an asset?

I have a content type 'blogpost' that currently contains a reference to another content type called 'image'. The content type 'image' has a link to an asset, an image file. Now I want to create a migration script where I link directly from the…
Bjarte Aune Olsen
  • 3,230
  • 4
  • 24
  • 36
2
votes
1 answer

Contentful Unknown Content Type

We are trying to query for content in Contentful CMS and we are receiving the following error: errors: [ { name: 'unknownContentType', value: 'DOESNOTEXIST' } ] This query had been previously work and the Content Type does exist in the…
Michael Edwards
  • 6,308
  • 6
  • 44
  • 75
2
votes
0 answers

Contentful fetch all tags with the GraphQL API

Currently I'm trying to work with the Contentful GraphQL API, although I can't seem to find the option to fetch all tags at once. In the docs I find this article…
ronnyrr
  • 1,481
  • 3
  • 26
  • 45
2
votes
1 answer

Contentful CMS is not showing data properly

I am using Contentful CMS (community edition) with Next.js but Contentful Client keeps on vanishing the random data in response. Every time I need to change the status of entry to Unpublish and then again publishing it solves the issue. This is too…
2
votes
1 answer

How to update a single field in a Contentful entry?

Need help updating a field in a CF entry. It is a dropdown field without a default value. I tried to do that by getting the entry from the CF environment, setting the corresponding field and updating it like this: client.getSpace(spaceId) …
AMDN
  • 23
  • 5
2
votes
7 answers

create-react-app is behind the latest version

I'm trying to run: npx @contentful/create-contentful-app init contentful-refs However this fails and throws the following errors: You are running create-react-app 4.0.3, which is behind the latest release (5.0.0). We no longer support global…
SocaBlood
  • 167
  • 1
  • 12
2
votes
1 answer

React how to render dynamic images inside nested data objects

I can console.log() the data I want after mapping through my data from my GraphQL query. However, the nested .map functions are not rendering my JSX. Is it possible to render JSX in nested .maps? const NikonGallery = ({ data }) => { return…
Alex Virdee
  • 121
  • 11
2
votes
1 answer

unordered list in contentful-rich-text rendering as P tags

Iv'e got a list of bullet points in my contentful space, but It shows up as P tags for some reason. I've tried using LIST_ITEM but, still same result. I just need the bullet points to show up. I think I'm missing a rich-text type but I'm not sure…
2
votes
2 answers

Using custom Angular component inside Contentful rich text renderer

I have a rich text element in Contentful that has an embedded entry within it. I am attempting to have that embedded entry render inside a custom Angular component. However, when I pass in options to the Contentful documentToHtmlString function, it…
SDMitch
  • 39
  • 2
  • 6
2
votes
1 answer

Role based restricted content with a headless CMS without native members built in

Coming from Umbraco where we have the concept of a User/UserGroup (backoffice) and a Member/MemberGroup (front facing part of website), I'm finding it a bit hard to figure out how to protect content in the front facing part of your website with a…
Dac0d3r
  • 2,176
  • 6
  • 40
  • 76
2
votes
1 answer

Is there a way to transform a Contentful entry from one content type to another?

I'm new to using Contentful and the issue I have is the following: I created a content model A with 10 different fields and I created 30 entries for that content model. However, I realised that this content model is not suitable for my use case and…
2
votes
0 answers

How to use lazy loading with Contentful

I'm using Contentful's long text to write my articles, which I'd like to then display on my website. I'm also adding images within the long text field, but I can't figure out how to use lazy loading to display them on the website. I'm querying for…
btm2424
  • 581
  • 6
  • 16
2
votes
2 answers

netlify deployment build is failing for gatsby-contentful site

I'm trying to deploy a Gatsby-Contentful site to Netlify and while deploying it gives me build error. While testing in localhost its working perfect. Here is the screenshot of the error: While in production the npm run build command is working…
Nouman Javed
  • 129
  • 1
  • 1
  • 13
2
votes
1 answer

How to get the html elements from Contentful Raw Data for RSS-feeds (gatsby-plugin-feed)

I'm bustin' my head trying to solve the latest breaking changes of my RSSfeeds using gatsby-plugin-feed@3.4.0 & gatsby@3.4.0 (latest of the latest). This is my config: (gatsby-config.js) { resolve: 'gatsby-plugin-feed', options: { …
mikeyfe6
  • 396
  • 2
  • 17