Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vijaycs85
Last active December 16, 2015 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaycs85/5402151 to your computer and use it in GitHub Desktop.
Save vijaycs85/5402151 to your computer and use it in GitHub Desktop.
# Working
field.instance.*.*.*:
type: mapping
label: 'Field instance settings'
mapping:
default_value:
type: field_instance.[%parent.widget.type].default
field_instance.text_textarea_with_summary.default:
type: sequence
label: 'Defaule value'
sequence:
- type: mapping
label: 'Default'
mapping:
summary:
type: string
label: 'Summary'
value:
type: text
label: 'Body'
format:
type: string
label: 'Text format'
# Not Working schema
field.instance.*.*.*:
type: mapping
label: 'Field instance settings'
mapping:
default_value:
type: sequence
label: 'Default values'
sequence:
- type: field_instance.[%parent.%parent.widget.type].default
label: 'Default value'
field_instance.text_textarea_with_summary.default:
type: mapping
label: 'Default value'
mapping:
summary:
type: string
label: 'Summary'
value:
type: text
label: 'Body'
format:
type: string
label: 'Text format'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment