Skip to content

Commit

Permalink
VOTE-605 Add new field to nvrf taxonomy for section description (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiraMSadat authored Dec 12, 2023
1 parent dc1955f commit c6dbc3b
Show file tree
Hide file tree
Showing 6 changed files with 199 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.taxonomy_term.nvrf_field.field_instructions
- field.field.taxonomy_term.nvrf_field.field_nvrf_machine_name
- field.field.taxonomy_term.nvrf_field.field_options
- field.field.taxonomy_term.nvrf_field.field_section_description
- taxonomy.vocabulary.nvrf_field
module:
- double_field
Expand All @@ -29,7 +30,7 @@ content:
third_party_settings: { }
field_error_message:
type: string_textfield
weight: 6
weight: 7
region: content
settings:
size: 60
Expand Down Expand Up @@ -61,7 +62,7 @@ content:
third_party_settings: { }
field_options:
type: double_field
weight: 5
weight: 6
region: content
settings:
first:
Expand All @@ -82,9 +83,17 @@ content:
rows: 5
inline: true
third_party_settings: { }
field_section_description:
type: text_textarea
weight: 5
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 7
weight: 8
region: content
settings:
include_locked: true
Expand All @@ -99,19 +108,19 @@ content:
third_party_settings: { }
path:
type: path
weight: 9
weight: 10
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 10
weight: 11
region: content
settings:
display_label: true
third_party_settings: { }
translation:
weight: 8
weight: 9
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.taxonomy_term.nvrf_field.field_instructions
- field.field.taxonomy_term.nvrf_field.field_nvrf_machine_name
- field.field.taxonomy_term.nvrf_field.field_options
- field.field.taxonomy_term.nvrf_field.field_section_description
- taxonomy.vocabulary.nvrf_field
module:
- double_field
Expand Down Expand Up @@ -88,5 +89,12 @@ content:
third_party_settings: { }
weight: 6
region: content
field_section_description:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 7
region: content
hidden:
langcode: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 673967de-7a75-47dc-98f7-32c5d1edac50
langcode: en
status: true
dependencies:
config:
- field.storage.taxonomy_term.field_section_description
- filter.format.simple_html
- taxonomy.vocabulary.nvrf_field
module:
- text
id: taxonomy_term.nvrf_field.field_section_description
field_name: field_section_description
entity_type: taxonomy_term
bundle: nvrf_field
label: 'Section Description'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- simple_html
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 7474f3a8-fe57-42c4-a2f2-d4691fe4d3bb
langcode: en
status: true
dependencies:
module:
- taxonomy
- text
id: taxonomy_term.field_section_description
field_name: field_section_description
entity_type: taxonomy_term
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
68 changes: 68 additions & 0 deletions config/sync/views.view.nvrf_api_taxonomy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.storage.taxonomy_term.field_instructions
- field.storage.taxonomy_term.field_nvrf_machine_name
- field.storage.taxonomy_term.field_options
- field.storage.taxonomy_term.field_section_description
- taxonomy.vocabulary.nvrf_field
- user.role.authenticated
module:
Expand Down Expand Up @@ -545,6 +546,68 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
field_section_description:
id: field_section_description
table: taxonomy_term__field_section_description
field: field_section_description
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
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: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: text_default
settings: { }
group_column: value
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
field_options_export:
id: field_options_export
table: taxonomy_term__field_options
Expand Down Expand Up @@ -758,6 +821,7 @@ display:
- 'config:field.storage.taxonomy_term.field_instructions'
- 'config:field.storage.taxonomy_term.field_nvrf_machine_name'
- 'config:field.storage.taxonomy_term.field_options'
- 'config:field.storage.taxonomy_term.field_section_description'
api_nvrf_nvrf_fields:
id: api_nvrf_nvrf_fields
display_title: 'NVRF Fields API'
Expand Down Expand Up @@ -801,6 +865,9 @@ display:
field_instructions:
alias: instructions
raw_output: false
field_section_description:
alias: section_description
raw_output: false
field_options_export:
alias: options
raw_output: false
Expand All @@ -821,3 +888,4 @@ display:
- 'config:field.storage.taxonomy_term.field_instructions'
- 'config:field.storage.taxonomy_term.field_nvrf_machine_name'
- 'config:field.storage.taxonomy_term.field_options'
- 'config:field.storage.taxonomy_term.field_section_description'
65 changes: 65 additions & 0 deletions config/sync/views.view.nvrf_reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.storage.taxonomy_term.field_help_text
- field.storage.taxonomy_term.field_instructions
- field.storage.taxonomy_term.field_options
- field.storage.taxonomy_term.field_section_description
- taxonomy.vocabulary.nvrf_field
- user.role.authenticated
module:
Expand Down Expand Up @@ -425,6 +426,68 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
field_section_description:
id: field_section_description
table: taxonomy_term__field_section_description
field: field_section_description
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: 'Section Description'
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: value
type: text_default
settings: { }
group_column: value
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
edit_taxonomy_term:
id: edit_taxonomy_term
table: taxonomy_term_data
Expand Down Expand Up @@ -625,6 +688,7 @@ display:
- 'config:field.storage.taxonomy_term.field_help_text'
- 'config:field.storage.taxonomy_term.field_instructions'
- 'config:field.storage.taxonomy_term.field_options'
- 'config:field.storage.taxonomy_term.field_section_description'
page_1:
id: page_1
display_title: Page
Expand All @@ -646,3 +710,4 @@ display:
- 'config:field.storage.taxonomy_term.field_help_text'
- 'config:field.storage.taxonomy_term.field_instructions'
- 'config:field.storage.taxonomy_term.field_options'
- 'config:field.storage.taxonomy_term.field_section_description'

0 comments on commit c6dbc3b

Please sign in to comment.