Questions tagged [decap-cms]
Decap CMS (formerly Netlify CMS) is an open source content management system that generates/edits markdown files, which are committed directly to a git repository (like GitHub). The repository is usually set up to then trigger a new build of the website using a static site generator.
decap-cms
290
questions
13
votes
2
answers
9k
views
GraphQL Error Field "image" of type "File" must have a selection of subfields. Did you mean "image { ... }"?
I am building a site with gatsby and Netlify CMS. I used the Gatsby Site Starter.
I keep getting a "GraphQL Error Field "image" of type "File" must have a selection of subfields. Did you mean "image ...
11
votes
2
answers
4k
views
How to provide internationalization properly using Gatsby + Netlify CMS
I'm trying to make a multi-language site and faced some problems.
Expected behavior:
Language automatically changes depends on browser language
The user can switch language
example: https://tic-tac-...
10
votes
1
answer
8k
views
Next.js: How to get static assets from within getStaticProps
I am using Netlify CMS. I want to import all the slides for a carousel into my component. I made a collection called slider and added a few slides. That created two markdown files (one for each slide) ...
8
votes
2
answers
3k
views
Netlify CMS with self-hosted Gitlab
I have a Gatsby static site that is currently deployed via Zeit Now from a self-hosted Gitlab account.
I would like to add Netlify CMS, but it only seems to integrate with a Gitlab.com account.
Is ...
8
votes
4
answers
7k
views
Problem with configuring Netlify CMS with Git Gateway
I am trying to use this Gatsby starter with Netlify CMS. https://github.com/stackrole-dev/gatsby-starter-foundation
I followed the instructions exactly but after enabling Git Gateway, when I try to ...
8
votes
1
answer
1k
views
Gatsby gatsby-remark-relative-images does not convert yaml absolute image path to relative
I am currently trying to resolve an absolute path in yaml file to relative so it can be query using graphql in gatsby. The absolute path are provided from netlify-cms.
When the same path are being ...
7
votes
1
answer
4k
views
How to make a one to many connection between Netlify CMS and Gatsby
I'm using Netlify CMS on a gatsby site. I used the netlify CMS relation widget on my post collection to reference the title field of my author collection, so...
- {label: "Author", name: "author", ...
6
votes
1
answer
2k
views
gatsby/netlify CMS - javascript heap out of memory
Gatsby and Netlify CMS were running nicely for a while but now it fails when trying to run gatsby develop. With a "JavaScript heap out of memory" error.
Every npm is updated and I've tried ...
6
votes
1
answer
2k
views
Netlify CMS, Gatsby and GitHub authentication without Netlify
Did anyone has luck using OAUTH to authenticate to GB from Netlify CMS but NOT using the Netlify API? If so, what did you use? I want do the authentication with my domain but Im not sure which API or ...
6
votes
1
answer
285
views
Make an image optional in netlify cms and gatsby js
I have a fairly simple Gatsby & Netlify CMS site. I can't cope with making images optional. In case of Netlify CMS it's just a matter of setting one field required: false. How do I write a query ...
6
votes
1
answer
2k
views
RuntimeError: memory access out of bounds - gatsby development extremely slow
Developing on Gatsby has been over time significantly slowing down - at times taking up 20-30 seconds for the hot loader to refresh the page. After around 10-20 updates to a page - it eventually ...
5
votes
1
answer
1k
views
How to get the slug to show up in graphql using NetlifyCMS and Gatsby?
When adding netlify cms to a site how does one go about getting the slug to show up in graphql?
I have one collection for a blog post and everything shows up except the slug:
backend:
name: git-...
5
votes
1
answer
2k
views
Using Netlify's hosted Identity service with self-hosted Netlify CMS
I am hosting my website on my own server, and using Netlify CMS. However, I would still like to use Netlify's hosted Identity and Git Gateway services, instead of running my own.
5
votes
1
answer
607
views
Netlify deploy throws: Error: Invalid version: “1”
Since yesterday I'm facing an error that I haven't been able to fix or to find information about. I can build my site locally without errors but when I try to deploy it in Netlify it fails and throws:
...
5
votes
2
answers
1k
views
Netlify CMS not able to update/replace image that has been optimized in Gatsby.js
From my markdown file index.md,...
---
templateKey: home-page/index
image1: /img/City-Picture.jpg
---
...I want to make an optimized image1 available to the graphql here in templates/index.js...
...