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

contentful documentHtmlToString format links

I am using contentful for our CMS needs and using the contentful SDK for JavaScript. I am trying to use their documentToHtmlString method to add some attributes to my anchor links. I have tried doing it like this: return documentToHtmlString(text,…
r3plica
  • 13,017
  • 23
  • 128
  • 290
2
votes
2 answers

Contentful GraphQL endpoint: how to retrieve all entries of a content type

{ Post { name } } While trying to retrieve all the entries on a content type, it only gives error of: "Argument \"id\" of required type \"String!\" was not provided." Since id field is required. How do I get all entries of a content type…
Lucia
  • 13,033
  • 6
  • 44
  • 50
2
votes
1 answer

Gastby - Add a GraphQL query with parameters in gastby-node.js

Inside gatsby-node.jsI have two queries that gets its data from Contentful. I want to add a new query that loads the data for a particular content based on its slug (a field set in the content model in Contentful). This is what I have: return…
dmferrari
  • 149
  • 12
2
votes
2 answers

How to render components dynamically in Gatsby.js and use code-splitting?

I am building websites with Gatsby and Contentful and it has been great so far. My problem is, that I don't know how to dynamically render components based on the data in Contentful. Let's say there is a page content type which as a title, url and…
Andre Zimpel
  • 2,323
  • 4
  • 27
  • 42
2
votes
1 answer

How to place dynamic value in contentful?

I am using contentful. In one of the content model, I want to display dynamic value based on the option selected. e.g. In contentful, I am having message as: Congratulations, your account has created successfully. I have options as…
Trupti
  • 843
  • 2
  • 11
  • 28
2
votes
2 answers

Contentful Content Management API Error 422 When Creating Asset

I am trying to create and publish an image as an asset using the Contentful Content Management API and have been unsuccessful so far, I have been able to successfully create and publish an entry and I cannot figure out why asset is not working. Here…
2
votes
1 answer

Create a nested Entry in a Contentful Space using Content-Management-API

Im using the Content-Managemen-API provided by contentful. Im using this to create a single entry in a space and this works fine: const contentful = require('contentful-management') const client = contentful.createClient({ accessToken:…
Skywalker
  • 4,984
  • 16
  • 57
  • 122
2
votes
1 answer

Syncing contentful changes to localhost gatsby build without re-running `gatsby-develop`

I am playing around with the gatsby contentful starter. I have everything set up so that I can make content changes in contentful and the webhook posts those to a remote Netlify site, and all I have to do is refresh the netlify site to see latest…
mheavers
  • 29,530
  • 58
  • 194
  • 315
2
votes
1 answer

how to render rich-text contentful

I have a field Rich text in contentful that I try to render, it's a ordered list. I installed the gem rich-text-renderer [ https://github.com/contentful/rich-text-renderer.rb ] but I don't get how to render the Rich text, is anyone having an…
Dips
  • 109
  • 1
  • 10
2
votes
2 answers

Cannot Render Contentful content by using Angular Universal (SSR)

I am working on an angular app with Contentful CMS which needs to be SSR. I have followed all the steps mentioned here Angular Universal. But its just rendering the static content, not the dynamic content from Contentful. I have also tried…
2
votes
4 answers

Type com.google.gson.ExclusionStrategy is defined multiple times

I'm getting this error when I try to add an implementation to my app's gradle file for Contentful Type com.google.gson.ExclusionStrategy is defined multiple times It looks like something in my intermediate dex file is going on. Here's the full…
Cody
  • 1,801
  • 3
  • 28
  • 53
2
votes
3 answers

Gatsby Contentful - GraphQL query error: Unknown type "ContentfulFixed"

I've decided to build my own blog and chose EmaSuriano's gatsby-starter-mate as my Gatsby Starter (I am absolutely new to Gatsby and Contentful!) I did everything as told, setting up my environment, setting up Contentful space and logged in to…
YouJin
  • 71
  • 2
  • 8
2
votes
4 answers

Angular Universal doesn't load my component in view-source when using Route Resolver

I'm using SSR application together with Contentful CMS with Route Resolver to fetch the data before loading the component. When I build and serve the application there's no error and I can see the content in the client side, but when I look the…
2
votes
0 answers

Allow optional GraphQL data in Gatsby for rich text

I am almost able to create Hero banner images with different layouts depending on what fields are filled out in a headless CMS/Contentful. I am able to get data from Contentful endpoint and have optional fields for header titles(sting values) when…
Patrik Rikama-Hinnenberg
  • 1,362
  • 1
  • 16
  • 27
2
votes
1 answer

Can't load in images from Contentful using GatsbyJS

First time posting here, but I've been struggling with this for a few days now. Basically I have a graphQL query that pulls in product data from contentful and then display it on a GatsbyJS page. The query correctly displays for the title, price,…
Jeremy
  • 21
  • 2