Last active
December 16, 2015 12:18
-
-
Save vijaycs85/5433410 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# field.instance.node.article.body.yml | |
default_value: | |
- | |
summary: '' | |
value: "<p>default 1</p>\r\n" | |
format: basic_html | |
field_type: text_with_summary | |
- | |
summary: '' | |
value: "<p>default 2</p>\r\n" | |
format: basic_html | |
field_type: text_with_summary | |
# Field instance defintion holds the top 'sequence' part. | |
# field.schema.yml | |
field.instance.*.*.*: | |
type: mapping | |
label: 'Field instance' | |
mapping: | |
default_value: | |
type: sequence | |
label: 'Default value' | |
sequence: | |
- type: field.[field_type].value | |
# Just type specific elements in data type defintion | |
# text.scheam.yml | |
field.text_with_summary.value: | |
type: mapping | |
label: 'Default' | |
mapping: | |
summary: | |
type: string | |
label: 'Summary' | |
value: | |
type: text | |
label: 'Body' | |
format: | |
type: string | |
label: 'Text format' | |
field_type: | |
type: string | |
label: 'Field type' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This way, we can have field.instance...*
and data type as