Home
initial page



This Space:
GIT REPO FOR THIS WEBSITE:
Main Blog:
Table of contents
Tools
Programming Languages
Python
JavaScript
Web Development Frameworks & Libraries
Productivity
Misc
GitGateway
Websites
Backend
Networking
Resources
General Knowledge
Finance
Science & Tech (Innovation)
Reading
Social Media & Trends
Docs
Code Editors & Tools
Cool Stuff
Server-Side
WEB_DEV_TOOLS
DS_ALGOS_BRAINTEASERS
Free-Stuff
Job-Search
General Comp Sci
Blockchain & Crypto


WEBSITE ā Portfolio ā Collaborate ā Other-Websites ā Recent Work
ā¤ Email bryan.guner@gmail.com Phone 551-254-5505
A passionate Web Developer, Electrical Engineer, Musician & Producer




Languages and Tools:


Python Website:
Widgets
Widgets define the data type and interface for entry fields. Netlify CMS comes with several built-in widgets. Click the widget names in the sidebar to jump to specific widget details. Weāre always adding new widgets, and you can also create your own!
Widgets are specified as collection fields in the Netlify CMS config.yml
file. Note that YAML syntax allows lists and objects to be written in block or inline style, and the code samples below include a mix of both.
To see working examples of all of the built-in widgets, try making a 'Kitchen Sink' collection item on the CMS demo site. (No login required: click the login button and the CMS will open.) You can refer to the demo configuration code to see how each field was configured.
Common widget options
The following options are available on all fields:
required
: specify asfalse
to make a field optional; defaults totrue
hint
: optionally add helper text directly below a widget. Useful for including instructions. Accepts markdown for bold, italic, strikethrough, and links.pattern
: add field validation by specifying a list with a regex pattern and an error message; more extensive validation can be achieved with custom widgetsExample:
yaml - label: "Title" name: "title" widget: "string" pattern: ['.{12,}', "Must have at least 12 characters"]
Default widgets
BooleanCodeColorDateDateTimeFileHiddenImageListMapMarkdownNumberObjectRelationSelectStringText
Boolean
The boolean widget translates a toggle switch input to a true/false value.
Name:
boolean
UI: toggle switch
Data type: boolean
Options:
default
: acceptstrue
orfalse
; defaults tofalse
whenrequired
is set tofalse
Example:
Last updated