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

Contentful without Composer

I already uploaded all "Official PHP SDK for the Content Delivery API" files and folders, from GitHub, to a folder on my server named "Contentful". Then I tried to follow the tutorial from Contentful site, but, of course, I could not make it work,…
Luis Rock
  • 357
  • 4
  • 17
2
votes
1 answer

contentful & javascript: get only entries with fields.date in the future

I'm using contentful as backend for my mobile app. match fixtures are stored within contentful. I want to query the next match, but i get the following error: 422 (Unprocessable Entity) My function to retrieve the next match: function…
ManuKaracho
  • 1,180
  • 1
  • 14
  • 32
1
vote
0 answers

TypeError: fields.map is not a function with next-sitemap for Contentful dynamic sitemap

I get this error when accessing the dynamic Contentful sitemap for my NextJs site with next-sitemap. error Error [TypeError]: fields.map is not a function I used this blog starter https://github.com/whitep4nth3r/nextjs-contentful-blog-starter for…
mettamyron
  • 11
  • 3
1
vote
1 answer

Cannot set property createClient of # which has only a getter REACT CONTENTFUL
Keep getting above error, i've looked at other solutions but they don't seem to be working. Would appreciate some insight on what im missing. I read a getter needs a setter but im not sure how i would even include that in a basic fetch call. I am…
someone
  • 661
  • 1
  • 9
  • 26
1
vote
0 answers

How to fix VersionMismatch when attempting an update using contenful-management

I am attempting to loop through all published documents in order to generate slugs, however I am getting a VersionMisMatch error on the update. I am assuming it is due to the X-Contentful-Version: 0 in there, how do I know what version to put in…
aggaton
  • 3,066
  • 2
  • 25
  • 36
1
vote
1 answer

Getting value from rich text element in Contentful?

I'm writing a Blazor site using Contentful as the CMS. I have 2 needs surrounding the Rich text Document type. I need to loop the entire Document body and isolate the Heading-2 portions and then render the values into a list I need to get the…
Tony Law
  • 293
  • 2
  • 13
1
vote
1 answer

Why is this GraphQL Contentful query too complex?

I get the below error message on a GraphQL query to Contentful, but do not understand why. Error message: "Query cannot be executed. The maximum allowed complexity for a query is 11000 but it was 12100. Simplify the query e.g. by setting…
Magnus
  • 6,791
  • 8
  • 53
  • 84
1
vote
0 answers

How to develop offline, with Gatsby and Contentful?

I have found a few SO questions on the GATSBY_CONTENTFUL_OFFLINE flag. Unfortunately, even with that flag set to true, I am unable to run gatsby develop offline. After running GATSBY_CONTENTFUL_OFFLINE=true gatsby develop, it crashes at the load…
Magnus
  • 6,791
  • 8
  • 53
  • 84
1
vote
0 answers

Not able to use environmental variables in Jotai

I would like to get data from a CMS and store it globally using Jotai. But I keep getting Uncaught TypeError: Expected parameter accessToken When I try to use environmental variables. At the same time, I don't have this error when I use my token…
Danny Lenko
  • 45
  • 1
  • 8
1
vote
0 answers

SwiftUI & Contentful Client Error: Type of expression is ambiguous without more context

The code below shows the code I am using to fetch data from Contentful API to my SwiftUI app. However, by calling the function client.fetchArray, I got an error message saying that the type of expression is ambiguous. I tried look up the…
yitak lee
  • 11
  • 1
1
vote
1 answer

How to get specific entries in Contentful

So I want to know how I can get all the entries where my sessionId equals to (for example: 4). public async Task Index(int? session) { var cardio = await _client.GetEntries(); //…
1
vote
1 answer

Contentfull Api filter nested collection

I have been using Contenfull to create a custom app. Now the problem that I'm having is I can not see how can I query a nested collection I have the following entry query cfPageList( $contentfulLocale: String $entryId: String! $preview:…
Loki
  • 1,064
  • 2
  • 26
  • 55
1
vote
1 answer

Can I use Svelte with Contentful?

We have been using Svelte for some time and are now introducing Contentful. We'd like to continue our apps in Svelte, but all documentation suggests we have to use SvelteKit. Has anyone successfully used Svelte with Contentful? And if so, do you…
lou_weez
  • 11
  • 1
1
vote
1 answer

How to display Cloudinary assets (integrated from Contentful) with Next.js 13?

I have been recently exploring Contentful CMS and I have been trying to display Cloudinary images/videos that I already placed in Contentful Content Model (JSON field with Cloudinary app applied) into Next.js 13 (I'm using their starter guide:…
Amanda
  • 35
  • 1
  • 7
1
vote
0 answers

Contentful - Add a target=“_blank” to hyperlink within Rich Text

Does anyone know how to add a target="_blank" to external hyperlinks within the Rich Text in Contentful? This is one way I was able to get it to work [INLINES.HYPERLINK]: (node, children) => { if (node.data.uri.includes('https://')) { return…
bryanpsd
  • 33
  • 7