Skip to content

Commit

Permalink
Merge pull request #65 from daleinen7/cms-title-validation
Browse files Browse the repository at this point in the history
limit title to 10 characters
  • Loading branch information
daleinen7 authored Oct 13, 2021
2 parents 6caf010 + 37742ae commit b46cb4b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
backend:
# name:test-repo - for testing
# name:git-gateway - for production
name: git-gateway
branch: main

media_folder: static/img
public_folder: /img

# test-repo in backend > name: for testing
# git-gateway in backend > name: for production
# god bless this stackoverflow forum https://stackoverflow.com/questions/55525988/netlify-cms-how-to-store-an-array-of-objects-via-config-yml-collections

collections:
Expand Down Expand Up @@ -49,4 +49,10 @@ collections:
fields:
- { label: "Media", name: "media", widget: "image" }
- { label: "Sentence", name: "sentence", widget: "string" }
- { label: "Word", name: "word", widget: "string", required: false }
- {
label: "Word",
name: "word",
widget: "string",
required: false,
pattern: ["^.{0,10}$", "Must have at no more than 10 characters"],
}

0 comments on commit b46cb4b

Please sign in to comment.