Skip to content

Commit

Permalink
restrict categories to existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Gerhardt committed Mar 19, 2020
1 parent 22bc7d9 commit 26c6724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ backend:
branch: dev #this will need to be changed once we deploy
use_graphql: true

local_backend: true

media_folder: assets/uploads
public_folder: /images/uploads
Expand Down
2 changes: 1 addition & 1 deletion admin/_content_collection_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ slug: '{{slug}}'
fields:
- {label: 'Layout', name: 'layout', widget: 'hidden', default: 'post'}
- {label: 'Title', name: 'title', widget: 'string'}
- {label: 'Category', name: 'category', widget: 'string'}
- {label: 'Category - from existing', name: 'category', widget: 'relation', collection: 'categories', searchFields: ['title', 'name'], valueField: 'name'}
- {label: 'Source name', name: 'source', widget: 'string'}
- {label: 'Source link', name: 'source_url', widget: 'string'}
- {label: 'Promoted', name: 'promoted', widget: 'boolean', default: false}
Expand Down

0 comments on commit 26c6724

Please sign in to comment.