entrie colors are now dynamiclly loaded from field_color in entree term
had to patch the color_field module https://www.drupal.org/project/color_field/issues/2854199#comment-12316266
This commit is contained in:
+12
-2
@@ -3,10 +3,12 @@ langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.taxonomy_term.entrees.field_color
|
||||
- field.field.taxonomy_term.entrees.field_notice
|
||||
- field.field.taxonomy_term.entrees.field_workflow
|
||||
- taxonomy.vocabulary.entrees
|
||||
module:
|
||||
- color_field
|
||||
- field_group
|
||||
- text
|
||||
- workflow
|
||||
@@ -29,6 +31,7 @@ third_party_settings:
|
||||
group_infos:
|
||||
children:
|
||||
- name
|
||||
- field_color
|
||||
- langcode
|
||||
- field_workflow
|
||||
parent_name: group_tabs
|
||||
@@ -84,6 +87,13 @@ content:
|
||||
rows: 3
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_color:
|
||||
weight: 1
|
||||
settings:
|
||||
default_colors: "#4B8F7E\n#868E24\n#2B8F2F\n#3A33B6\n#2C9F57\n#C48978\n#5270BB\n#FB54D3\n#E07483\n#655845\n#7E0868\n#0E7121\n#DABD42\n#0399BB\n#399A1C\n#708540\n#191BFF\n#279D84\n#5219AB\n#D49CB6\n#497715"
|
||||
third_party_settings: { }
|
||||
type: color_field_widget_box
|
||||
region: content
|
||||
field_notice:
|
||||
weight: 3
|
||||
settings:
|
||||
@@ -93,14 +103,14 @@ content:
|
||||
type: text_textarea
|
||||
region: content
|
||||
field_workflow:
|
||||
weight: 2
|
||||
weight: 3
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: workflow_default
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 1
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
|
||||
@@ -3,10 +3,12 @@ langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.taxonomy_term.entrees.field_color
|
||||
- field.field.taxonomy_term.entrees.field_notice
|
||||
- field.field.taxonomy_term.entrees.field_workflow
|
||||
- taxonomy.vocabulary.entrees
|
||||
module:
|
||||
- color_field
|
||||
- options
|
||||
- text
|
||||
id: taxonomy_term.entrees.default
|
||||
@@ -21,6 +23,15 @@ content:
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_color:
|
||||
weight: 100
|
||||
label: above
|
||||
settings:
|
||||
format: hex
|
||||
opacity: '1'
|
||||
third_party_settings: { }
|
||||
type: color_field_formatter_text
|
||||
region: content
|
||||
field_notice:
|
||||
weight: 2
|
||||
label: above
|
||||
@@ -35,5 +46,8 @@ content:
|
||||
third_party_settings: { }
|
||||
type: list_default
|
||||
region: content
|
||||
index:
|
||||
weight: 99
|
||||
region: content
|
||||
hidden:
|
||||
langcode: true
|
||||
|
||||
@@ -11,6 +11,7 @@ module:
|
||||
breakpoint: 0
|
||||
bulkdelete: 0
|
||||
ckeditor: 0
|
||||
color_field: 0
|
||||
config: 0
|
||||
config_devel: 0
|
||||
config_update: 0
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
uuid: 185764a3-7cbf-4de2-a7b1-aafab3624b20
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.taxonomy_term.field_color
|
||||
- taxonomy.vocabulary.entrees
|
||||
module:
|
||||
- color_field
|
||||
id: taxonomy_term.entrees.field_color
|
||||
field_name: field_color
|
||||
entity_type: taxonomy_term
|
||||
bundle: entrees
|
||||
label: Color
|
||||
description: ''
|
||||
required: true
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
opacity: 0
|
||||
field_type: color_field_type
|
||||
@@ -0,0 +1,20 @@
|
||||
uuid: 9abbf68b-5252-4984-9f0d-fc9fca953575
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- color_field
|
||||
- taxonomy
|
||||
id: taxonomy_term.field_color
|
||||
field_name: field_color
|
||||
entity_type: taxonomy_term
|
||||
type: color_field_type
|
||||
settings:
|
||||
format: '#HEXHEX'
|
||||
module: color_field
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
||||
@@ -3,6 +3,7 @@ langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.taxonomy_term.field_color
|
||||
- field.storage.taxonomy_term.field_notice
|
||||
- field.storage.taxonomy_term.field_workflow
|
||||
- taxonomy.vocabulary.entrees
|
||||
@@ -10,6 +11,7 @@ dependencies:
|
||||
- user.role.collectionneur
|
||||
- user.role.root
|
||||
module:
|
||||
- color_field
|
||||
- options
|
||||
- taxonomy
|
||||
- text
|
||||
@@ -132,6 +134,72 @@ display:
|
||||
row:
|
||||
type: fields
|
||||
fields:
|
||||
field_color:
|
||||
id: field_color
|
||||
table: taxonomy_term__field_color
|
||||
field: field_color
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: Color
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: true
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: color
|
||||
type: color_field_formatter_swatch
|
||||
settings:
|
||||
shape: square
|
||||
width: '20'
|
||||
height: '20'
|
||||
opacity: '0'
|
||||
group_column: ''
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
plugin_id: field
|
||||
name:
|
||||
id: name
|
||||
table: taxonomy_term_field_data
|
||||
@@ -549,6 +617,7 @@ display:
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags:
|
||||
- 'config:field.storage.taxonomy_term.field_color'
|
||||
- 'config:field.storage.taxonomy_term.field_notice'
|
||||
- 'config:field.storage.taxonomy_term.field_workflow'
|
||||
page_1:
|
||||
@@ -577,5 +646,6 @@ display:
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags:
|
||||
- 'config:field.storage.taxonomy_term.field_color'
|
||||
- 'config:field.storage.taxonomy_term.field_notice'
|
||||
- 'config:field.storage.taxonomy_term.field_workflow'
|
||||
|
||||
Reference in New Issue
Block a user