Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decap cms expansion #270

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Decap cms expansion #270

wants to merge 3 commits into from

Conversation

shushugah
Copy link
Member

@shushugah shushugah commented Feb 4, 2024

DecapCMS provides a User Interface to enable editors to update the website without touching github.com. Behind the hood DecapCMS makes GitHub edits. Before this pull request, only events were editable. Now this includes blog posts, and also the author/press data collections

If you want to add a new press mention inside https://techworkersberlin.com/press, or update an existing blog post inside https://techworkersberlin.com/blog both are now possible via DecapCMS. Addresses issues in #269

What's working:

Adding Authors, Press (data) and Blog collections are editable now!!!

Not fully working

Selecting the authors/tags inside news or blog posts does not dynamically load/update...so need to know manually what valid author/tags are...

Screenshots

Screenshot 2024-02-04 at 16 18 51 Screenshot 2024-02-04 at 18 26 52

Copy link

netlify bot commented Feb 4, 2024

Deploy Preview for techworkersberlin ready!

Name Link
🔨 Latest commit 7e5c8b0
🔍 Latest deploy log https://app.netlify.com/sites/techworkersberlin/deploys/65bfcd711688d500082c5eb1
😎 Deploy Preview https://deploy-preview-270--techworkersberlin.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@shushugah shushugah force-pushed the decap-cms-expansion branch from e660171 to aef6564 Compare February 4, 2024 17:29
Copy link
Member Author

@shushugah shushugah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explaining purpose of this Pull Request

name: Simon
picture: /assets/css/images/logo.png
title: omg
entries:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DecapCMS expects a non-anonymous collection

- editor
- editor
commit_messages:
create: Add {{collection}} "{{slug}}" via DecapCMS
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the automated messages when publishing via DecapCMS

fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
# this is still not working...in worst case...could set it to simple string...but without validation ;p
- {label: "Author", name: "author", widget: "relation", collection: "relation_files", file: "authors", search_fields: ['authors.entries.handle'], value_field: "authors.entries.handle" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acao this line seems wrong... I am unsure what file: value should be...I defined authors in line 61 below; but it's not working :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant