import { default } from "https://deno.land/x/netlify_cms_config@v0.3.2/collections/collection.ts";
Constructors
new
default(label: string, config: Options)Type Parameters
optional
Options extends BaseOptions = BaseOptionsProperties
config: Options
Methods
description(description: string): this
Optional text, displayed below the label when viewing a collection
hide(hide?): this
To hides a collection in the CMS UI. Useful when using the relation widget to hide referenced
labelSingular(label: string): this
Singular label for certain elements in the editor; defaults to the value of label
publish(publish?): this
For publish_mode: editorial_workflow only: false hides UI publishing controls for a collection. defaults to true
sortableFields(...fields: string[]): this
list of sort fields to show in the UI. Defaults to inferring title, date, author and description fields and will also show Update On sort field in git based backends. When author field can't be inferred commit author will be used.
viewFilter(): this
label: string,
field: string,
pattern: string | boolean,
Add a predefined view filters to show in the UI.
viewGroup(): this
label: string,
field: string,
pattern: string | boolean,
Add a predefined group filters to show in the UI.