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

Webhooks with Contentful and node

Really struggling to get this working. I have a webhook definition setup in Contentful. When I publish an entry in Contentful it sends an HTTP POST request to webhooks.example.com. At that subdomain I have a NodeJS server running to accept the…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
8
votes
3 answers

How to clear NextJs GetStaticPaths cache / "unpublish" a dynamic route?

I think this is quite a vanilla question but I can't find anything on Google. I'm learning NextJs (using TypeScript) and I've got a site successfully working with dynamic routes, SSR, and incremental regeneration all setup and deployed to Vercel.…
Alex Norcliffe
  • 2,439
  • 2
  • 17
  • 21
7
votes
0 answers

Angular 6 PWA service worker not serving content offline

I'm trying to set up a PWA with Angular 6 and having trouble to make the service worker serve content offline. I tried a lot of configurations and stuff for a couple of days now but with no success. The service worker seems to be registered and…
7
votes
3 answers

How to handle Contentful content data in Gatsby

I'm interested in using Gatsby to build a Netlify static site using content from Contentful Netlify has this nice gettting started Gatsby guide: ​​https://www.netlify.com/blog/2016/02/24/a-step-by-step-guide-gatsby-on-netlify But I'm a bit unsure…
ChatGPT
  • 5,334
  • 12
  • 50
  • 69
6
votes
1 answer

NEXT.js ISR remove static page

I have a little problem with the ISR. I have the revalidate prop equal 1s like here export async function getStaticProps({ params }) { const data = await client.getEntries({ content_type: "product", "fields.name": params.slug, }); …
David
  • 73
  • 1
  • 6
6
votes
3 answers

Gatsby Contentful embedded image

As I see there is no json option anymore when querying the contentfulBlogPost only raw. I was able to make some changes to get everything from the body, except the image from that post. If I made a test in GraphQL Playground I can get the image id…
6
votes
3 answers

How can I see what locales a content entry has via Contentful delivery API

I'm running a query in Contentful delivery API to return a particular page item based in it's slug. This query is also setting the locale so that it will only return the data in the language I need to render. However, I also will need to set the…
Chris
  • 7,996
  • 11
  • 66
  • 98
6
votes
4 answers

Setting environment variables in Gatsby

I used this tutorial: https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/environment-variables.md Steps I followed: 1) install dotenv@4.0.0 2) Create two files in root folder: ".env.development" and ".env.production" 3) "follow their setup…
Sebastian
  • 1,225
  • 1
  • 16
  • 27
6
votes
2 answers

Hierarchical menu with Contentful

Contentful has a notion of "Links" which can be to many objects or one. However I can't find a way to model the reverse relationship without doubling the work (i.e. specify the children AND parent of each object). I would like to use Contentful to…
Guy Bowden
  • 4,997
  • 5
  • 38
  • 58
6
votes
1 answer

rails delete_if using hashes to ignore current article (Middleman)

I've got an easy one for you guys. I want to have a featured content section where the current article is EXCLUDED So this works using Middleman Blog with delete_if: <% blog(content).articles.delete_if{|item| item == current_article}.each do…
umbriel
  • 723
  • 1
  • 7
  • 22
6
votes
2 answers

Hiding contentful Space id and access token, client side javascript file

I am new in contentful and I am trying to display content from contentful to a web page. I am displaying the content using contentful.js, I wanted to know How can i hide these information(space id and access token values) from public users when i am…
R. Mani
  • 61
  • 5
6
votes
2 answers

iOS UITableView Cell Indentation

I am setting up a UITableView programmatically. I would like the content of the cell to span the entire width of the screen. I have successfully set the cell to span the width of the screen, but the content and separators are still inset…
turnerjess
  • 121
  • 1
  • 8
6
votes
1 answer

Format string with line breaks into paragraphs

I'm using Contentful CMS to manage content and pulling in the content with their API. The content get pulled in as a json object. One of the keys in the object is for the main block of text for the entry I am pulling. The string has no actual code…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
5
votes
1 answer

How to render hyperlinks inside contentful rich text?

I have a gatsby app in which I am rendering rich text content. everything is working well, other than me being unable to fetch the text which I hyperlinked in the contentful CMS. Current code looks like below and I can get the url or uri (in…
Jegs
  • 579
  • 1
  • 6
  • 14
5
votes
2 answers

Azure static web app environment variable

I am trying to publish Gatsbyjs by Azure Static web app. I have a plugin (gatsby-source-contentful). I need to pass variables like: { resolve: `gatsby-source-contentful`, options: { spaceId: process.env.CONTENTFUL_SPACE_ID, …
1
2
3
57 58