Admin
{% include widgets/form.html class='admin' add='field' %}
Form
Render a form to create or edit a data file, or perform automatic functions.
Fields and destination are passed with a data file or in the front matter.
include.form: front-matter or data file, default topage.form.include.formmust havefile_urlproperty
include.class: class added to the form.include.popover: Show as Popover.{% include widgets/input.html form=page.form %}include.function: javascript function.{% include widgets/input.html function='a/b=c/d' %}
yaml object to Forms
Reserved fields
file_url: complete data file url Alternate url expressionfile_namefile_extensionfile_path
Fields options and values
- type
- All types
- label (text)
- description (text)
- hidden
- date
- radio
- options (array of id)
- descriptions (array of text)
- All types