871 questions
0
votes
0
answers
11
views
How to fetch entries of a specific type that directly or indirectly refer to an entry
Let's say there's a Content Model which includes three content types: RootNode, Node, Leaf. As the names imply, content type RootNode includes fields nodes and leafs which respectively includes zero-...
0
votes
0
answers
47
views
In Contentful API, the default sort ordering for full text search is returned by updatedTime rather than by relevance
I have 3 content models and I am trying to perform a full text search based on relevance and based on most recent (updated time) in two separate cases.
{
query: 'test',
'sys.contentType.sys.id[in]'...
0
votes
0
answers
51
views
Contentful multiple content types filtering
I've an Intros content type in Contentful, and this is some portion of the JSON representation of the content type
{
"name": "Intros",
"description": "Inserted ...
0
votes
0
answers
11
views
How does Contentful cfimp handle many reference fields?
I am using @mitya's cfimp with Contentful, and I don't see any mention in the documentation of how to import more than one value into a many-reference field. Can it be done, and if so, how?
I don't ...
0
votes
1
answer
103
views
How to make contentful graphQL schemas treat "required" fields as required, not optional?
I have Contentful content models, and I fetch the GraphQL Schema that Contentful generates, and use it to generate Typescript types.
In my content model, some fields are set as "required" ...
2
votes
2
answers
87
views
TypeScript warning while querying entries with filter
I'm using the contentful npm package (version ^11.5.11) in a TypeScript project and querying entries with a match operator on a field (fields.key). The query works correctly and returns expected ...
0
votes
1
answer
86
views
Use query params or URL path params in Contentful Custom App - Page location
I have a contentful custom app, with a page location configured. I want to be able to share a link to a specific sub-screen of the custom app page, controlled by URL query params or the URL path.
The ...
1
vote
0
answers
56
views
Managing Contents Across Contentful - Multiple Domains + Locales
We have a huge codebase, and I ll make it simple here.
I have a Header Component, A Body Component, and a Footer Component and we have three domains, EN, PT and DE.
If I am in UK Domain, I have ...
1
vote
2
answers
94
views
GraphQL Query to Contentful Returns Only One Image in imagesCollection Despite Multiple Images Being Present
I'm working on a Next.js project using Contentful as my CMS. I'm fetching room details, including a collection of images, through a GraphQL query. In the Contentful UI, the room entry contains ...
0
votes
1
answer
76
views
Type Error using ContentFul Node Module when trying to order results
I am using Contentful to manage content on a new site I am working on and it's going pretty well. However, I have an issue when trying to sort items. I am using NextJS14 and the Contentful node module....
0
votes
0
answers
234
views
Why does Contentful Delivery API sometimes return Child References as type "Link" rather than "Entry" after 3-4 weeks?
After 3-4 weeks, when fetching Contentful data via Contentful Delivery API, I noticed that most child references show up as "type": "Link" instead of "type": "Entry&...
0
votes
1
answer
234
views
How to Preserve Slashes in Contentful Slugs with Next.js
I am using Contentful and Next.js in my project. The slugs I receive from Contentful contain slashes (e.g., news-insights/blogname). However, when I fetch these slugs and try to build the pages, the ...
2
votes
0
answers
99
views
How to get the definition of the content model of a specific type with Contentful CLI
Contentful CLI supports exporting all content models with the following command:
$ contentful space export --skip-roles --skip-content
Let's say that we are only interested in exporting a single ...
1
vote
0
answers
97
views
Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'PARAGRAPH')
(https://i.sstatic.net/mLjkpUbD.png)
I'm encountering a TypeError in my code even before attempting to make a service call to Contentful. This issue is preventing me from progressing with my ...
1
vote
0
answers
117
views
Preview is returning the published post. I want the modified post
I'm working in a Next.js 13 app, using Contentful CMS. I have the rights ENV vars and i want to have the preview of each post before to publish it.
I wrapped my _app.js with
import { ...
0
votes
0
answers
238
views
Unable to Update Entry in Contentful with Next.js: "Access token invalid" Error
I'm encountering an issue while attempting to update an entry in Contentful using the Contentful Management SDK. I've followed the example provided in the documentation, but I keep receiving an "...
0
votes
0
answers
252
views
Cannot Access Contentful Space on Environment "Master" with access token
On my local machine, when I go to run npm start, I received an error:
"Cannot access Contentful space "" on environment "master"
with access token "*********" Make ...
0
votes
1
answer
53
views
Contentful PHP SDK : How to retrieving localized embedded content in Content Renderer
Use of locale with CustomEmbedded block in CD CMS App.
I have the EmbeddedAssetBlock stuff working, but it only gets the default locale for the embedded item. All the rest of the content is translated ...
0
votes
0
answers
138
views
Why is Astro site not building with Contentful fields?
I have an Astro site that uses Contentful as a CMS.
I want to fetch data from Contentful to display on the website. I've been following the guidance on the Astro site.
lib/contentful.ts
import ...
1
vote
2
answers
700
views
Sorting posts by creation date with Contentful
I'm using Contentful to manage blog posts for a site I'm making.
I set up the content model and have it displaying well on my page, but if I update an old post it moves it to the top of the page.
They'...
0
votes
1
answer
657
views
Displaying an image from Contenful in Next.js
I have an issue with displaying an image for a blog post in my Next.js app. The blog page uses Contentful's model for the blog posts.
I have defined in my types.d.ts file the following:
import { ...
0
votes
1
answer
292
views
Contentful graphQL: filtering content by publishDate
Hi my team is developing functionality to allow content editors to preview pages with content that will is schedule to be published at a future date. See screenshot.
I have not seen much ...
0
votes
1
answer
277
views
Why does my Astro site shows HTML tags of Contentful data?
I'm fairly new to Astro. Been stucked in this particular issue for so long.
As the title mentioned, I can't get my contentful data to render properly without the correct formatting. It shows html tags ...
0
votes
1
answer
111
views
Contentful PHP API: how to get just one single entry?
I'm using this code to get all my content in Contentful (they are projects and within each project a gallery of images) for a simple portfolio website.
$client = new \Contentful\Delivery\Client('xxx-...
0
votes
0
answers
384
views
GraphQL query: how to map a list of ids to the corresponding entities?
I am using Contentful's "GraphQL Playground".
I have a field that contains a list of id's:
I'd like to retrieve the entities corresponding to those id's. I can do it with a second query:
...