8000 Add visual settings via Netlify CMS · Issue #18 · cstate/cstate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add visual settings via Netlify CMS #18

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

Closed
mistermantas opened this issue Aug 3, 2018 · 2 comments
Closed

Add visual settings via Netlify CMS #18

mistermantas opened this issue Aug 3, 2018 · 2 comments
Assignees

Comments

@mistermantas
Copy link
Member
mistermantas commented Aug 3, 2018

Problem: the file is overwritten to save changes, which isn’t great.

Small preview of what this looks like:

  - name: "settings"
    label: "Settings"
    description: "⚠ Please be warned that by editing settings from Netlify CMS you are _overwriting_ what you have in the original Git repository, meaning any comments left will be deleted."
    delete: false # Prevent users from deleting documents in this collection
    editor:
      preview: false
    files:
      - name: "general"
        label: "Configuration"
        file: "config.yml"
        fields:
          - label: 'This options affects the core of cState. It defines the theme directory. Do not change it if you do not know what you are doing.'
            name: 'theme'
            widget: 'hidden'
            default: 'cstate'
          - {label: "What is your status page called? — Shows up in the browser bar and meta tags", name: "title", widget: "string"}
          - {label: "Should posts, which have a publish date from the future, be built? Useful for sharing upcoming maintenance, etc.", name: "buildFuture", widget: "boolean", default: true, required: false}
          - label: 'What language should the site use?'
            name: 'languageCode'
            widget: 'select'
            default: 'en'
            options:
              - { label: 'English (Default)', value: 'en' }
              - { label: 'Lithuanian', value: 'lt' }
          - {label: "What is the hostname or path to the root? Where is the site hosted? Slash enables relative links.", name: "baseURL", widget: "string", default: "/"}
          - label: "Params"
            name: "params"
            widget: "object"
            fields:
              - label: "Footer links"
                name: "footer"
                widget: "list"
                fields:
                - {label: "Name", name: "name", widget: string}
                - {label: "URL", name: "url", widget: string}
          - label: "Taxonomies (values must be identical to label)"
            name: taxonomies
            widget: "object"
            required: false
            fields:
              - {label: "categories", name: "category", widget: "string", default: "categories"}
              - {label: "author", name: "author", widget: "string", default: "author"}
              - {label: "tags", name: "tag", widget: "string", default: "tags"}
@mistermantas mistermantas added this to the v3.0 milestone Aug 3, 2018
@mistermantas mistermantas self-assigned this 8000 Aug 3, 2018
@mistermantas
Copy link
Member Author
mistermantas commented Sep 8, 2018

For this v3 this is the current config file:

title;
buildFuture;
languageCode;
baseURL;

[hidden]
preserveTaxonomyNames;
theme;
[taxonomies]
affected;

[params]
systems (list: name, description, partial);
dateFormat;
shortDateFormat;
useLargeHeaderDesign;
useLogo;
logo;
description;
autoRefresh;
alwaysKeepBrandColor;
incidentPostsPerPage;

(colors)
brand
ok
disrupted
down
notice


googleAnalytics
(UA-00000000-1)

version (?)

@mistermantas
Copy link
Member Author

Seems to be working in v3. Now just to keep this up to date!

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

No branches or pull requests

1 participant
0