Field Token Value experiment
It's just not up to the task we need it for, conditional statements and the like. I don't think? A single conditional wrapper i'd do and keep it, but i think we need conditional logic inside it to get formatting. Maybe not.
This commit is contained in:
parent
2ef73dde80
commit
598baeb58b
4 changed files with 62 additions and 0 deletions
|
@ -8,6 +8,7 @@ dependencies:
|
|||
- field.field.node.article.field_article_type
|
||||
- field.field.node.article.field_authors
|
||||
- field.field.node.article.field_body_paragraph
|
||||
- field.field.node.article.field_citation
|
||||
- field.field.node.article.field_economic_sectors
|
||||
- field.field.node.article.field_image
|
||||
- field.field.node.article.field_institutions_structures
|
||||
|
@ -27,6 +28,7 @@ dependencies:
|
|||
module:
|
||||
- comment
|
||||
- datetime
|
||||
- field_token_value
|
||||
- file
|
||||
- focal_point
|
||||
- metatag
|
||||
|
@ -79,6 +81,12 @@ content:
|
|||
third_party_settings: { }
|
||||
type: entity_reference_paragraphs
|
||||
region: content
|
||||
field_citation:
|
||||
weight: 26
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: field_token_value_default
|
||||
region: content
|
||||
field_economic_sectors:
|
||||
weight: 19
|
||||
settings:
|
||||
|
|
|
@ -8,6 +8,7 @@ dependencies:
|
|||
- field.field.node.article.field_article_type
|
||||
- field.field.node.article.field_authors
|
||||
- field.field.node.article.field_body_paragraph
|
||||
- field.field.node.article.field_citation
|
||||
- field.field.node.article.field_economic_sectors
|
||||
- field.field.node.article.field_image
|
||||
- field.field.node.article.field_institutions_structures
|
||||
|
@ -25,6 +26,7 @@ dependencies:
|
|||
- node.type.article
|
||||
module:
|
||||
- datetime
|
||||
- field_token_value
|
||||
- file
|
||||
- user
|
||||
_core:
|
||||
|
@ -34,6 +36,14 @@ targetEntityType: node
|
|||
bundle: article
|
||||
mode: default
|
||||
content:
|
||||
field_citation:
|
||||
weight: 10
|
||||
label: above
|
||||
settings:
|
||||
wrapper: ''
|
||||
third_party_settings: { }
|
||||
type: field_token_value_text
|
||||
region: content
|
||||
field_economic_sectors:
|
||||
weight: 2
|
||||
label: above
|
||||
|
|
25
config/sync/field.field.node.article.field_citation.yml
Normal file
25
config/sync/field.field.node.article.field_citation.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
uuid: 015a792f-209b-496f-87c2-aa781043f24d
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_citation
|
||||
- node.type.article
|
||||
module:
|
||||
- field_token_value
|
||||
id: node.article.field_citation
|
||||
field_name: field_citation
|
||||
entity_type: node
|
||||
bundle: article
|
||||
label: Citation
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value:
|
||||
-
|
||||
value: ''
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
field_value: 'When citing this article, please use the following format: [node:field_authors:0] [node:field_authors:1] [node:field_authors:2] ([node:field_publication_date:date:custom:Y]). [node:title] [node:field_subtitle]. Grassroots Economic Organizing (GEO). [node:title]'
|
||||
remove_empty: 1
|
||||
field_type: field_token_value
|
19
config/sync/field.storage.node.field_citation.yml
Normal file
19
config/sync/field.storage.node.field_citation.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
uuid: aa2366f1-e20d-4afe-b657-c17d5fe59399
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- field_token_value
|
||||
- node
|
||||
id: node.field_citation
|
||||
field_name: field_citation
|
||||
entity_type: node
|
||||
type: field_token_value
|
||||
settings: { }
|
||||
module: field_token_value
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
Loading…
Add table
Reference in a new issue