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

User authentication in contentful CMS

As per my understanding, Contentful CMS supports Application level authentication via OAuth and Access tokens. I am looking for user level authentication support, where I have/grant limited number of users to access. I can add or delete user at…
2
votes
1 answer

Fastly error when reverse proxying

I am trying to setup a caching reverse proxy for Contentful CDN using Nginx my configuration is as follows: http { proxy_cache_path /my/cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g; log_format main …
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
2
votes
1 answer

Contentful: Prevent webhook from triggering, when using Content Management API

So I've created a webhook within the Contentful dashboard, that triggers when an entry is either published or deleted, and it works as it should. However, I want to be able to publish entries via the Content Management JavaScript API, without…
thebfftim
  • 109
  • 1
  • 6
2
votes
1 answer

Trying to upload image to VIA Contentful Content Management API JAVA

I'm trying to upload an image via content management API. What I want to achieve is: Upload the image to the predefined Image content model and fetch the url later via the Content Delivery API - basically I wish to use Contentful as my own image…
Olaru Vlad
  • 267
  • 1
  • 6
  • 13
2
votes
2 answers

Looping assets and entries together

I have managed to loop out all content from a specific ContentType and everything works well except that the entries are not followed by their specific assets. In this specific case it renders as: Entry 1 Entry 2 Entry 3 Asset 1 Asset 2 Asset 3 I…
2
votes
1 answer

Getting JSON from Contentful into Mustache

I'm trying to get my entries from Contentful (JSON) and putting them into a Mustache template. The following code works, but is not applied to a template: client.getEntries() .then((response) => { $('.result').html(response.items.map((item) => '…
2
votes
1 answer

How to retrieve linked fields in Contentful query

I'm using Contentful and have a content model which uses a series of related fields. I am querying my content in NodeJS using the JS api. If I call get entries, like so contentfulClient.getEntries({ content_type: 'homePage' }) it fetches all…
Math
  • 167
  • 1
  • 8
2
votes
2 answers

Updating a Contentful entry

I've hit a brick wall whilst attempting to update a Contentful entry using a typical http request in Javascript; I receive the error code "VersionMismatch" which, according to the documentation, means: This error occurs when you're trying to update…
mmmoustache
  • 2,273
  • 6
  • 41
  • 62
2
votes
1 answer

Template not binding to observable while using async pipe on initial load

I'm using the contentful js SDK to fetch data in a service. The SDK provides a method to retrieve entries from a promise and also parse those entries. Since I would like to use observables, I am returning the promise as an observable and then…
2
votes
1 answer

Contentful - Example code for the Content Management API

Contentful has only a PHP SDK for the Content Delivery API (ready only). I need to update a entry from my PHP code and I could not find any sample code in the documentation. Im trying to use the REST API directly…
FelipeOliveira
  • 759
  • 8
  • 21
2
votes
3 answers

Import contentful in to react-native

I am extremely excited about using contentful for my project, but I can't get the JS library to work in a react-native project. I get the following error: I have tried the following approaches: import contentful from 'contentful'; // or var…
Daniel Apt
  • 2,468
  • 1
  • 21
  • 34
2
votes
2 answers

Jekyll Contentful, how to hide api key from config file?

Jekyll contentful plugin is configured in the config.yml file. But if I publish the repo on a public github repository, the api key will be available for anyone to use it. How can I avoid that?
GuayoMena
  • 53
  • 1
  • 9
2
votes
1 answer

How to make pages / post from jekyll data

I am trying to use contentful with jekyll, I have Article data model giving all the articles in a yaml format. --- article: - sys: id: 4xHyK0wA48sKiQeO8WK4CU title: Another Awesome Article body: |- Lorem ipsum dolor sit amet, consectetur…
Robin Solanki
  • 203
  • 1
  • 8
2
votes
1 answer

Retrieve Fields of a Linked Entry - Contentful

As the title says, is there a way to view the fields of a linked entry in one query? For example, I query the following url: https://cdn.contentful.com/spaces/{spaceid}/entries/{entryid}?access_token={accesstoken} and only get the fields associated…
red_student
  • 316
  • 2
  • 6
  • 16
2
votes
1 answer

Parsing Contentful Webhooks (Custom JSON types)

I'm currently using this Contentful-webhook-server to listen for webhooks when content is unpublished. server.listen(30000, function(){ console.log('Contentful webhook server running on port ' +…
izzie
  • 23
  • 4