Add related concept field. #17

Merged
lio merged 1 commits from related-concept into master 2023-05-03 20:49:52 +02:00
7 changed files with 121 additions and 1 deletions

View File

@ -5,6 +5,8 @@ dependencies:
config: config:
- field.field.node.concept.body - field.field.node.concept.body
- field.field.node.concept.field_media - field.field.node.concept.field_media
- field.field.node.concept.field_related_concept
- field.field.node.concept.field_tags
- node.type.concept - node.type.concept
module: module:
- media_library - media_library
@ -38,6 +40,26 @@ content:
settings: settings:
media_types: { } media_types: { }
third_party_settings: { } third_party_settings: { }
field_related_concept:
type: entity_reference_autocomplete
weight: 123
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete
weight: 124
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
langcode: langcode:
type: language_select type: language_select
weight: 2 weight: 2

View File

@ -5,6 +5,8 @@ dependencies:
config: config:
- field.field.node.concept.body - field.field.node.concept.body
- field.field.node.concept.field_media - field.field.node.concept.field_media
- field.field.node.concept.field_related_concept
- field.field.node.concept.field_tags
- node.type.concept - node.type.concept
module: module:
- text - text
@ -30,6 +32,22 @@ content:
third_party_settings: { } third_party_settings: { }
weight: 102 weight: 102
region: content region: content
field_related_concept:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 103
region: content
field_tags:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 104
region: content
links: links:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }

View File

@ -6,6 +6,8 @@ dependencies:
- core.entity_view_mode.node.teaser - core.entity_view_mode.node.teaser
- field.field.node.concept.body - field.field.node.concept.body
- field.field.node.concept.field_media - field.field.node.concept.field_media
- field.field.node.concept.field_related_concept
- field.field.node.concept.field_tags
- node.type.concept - node.type.concept
module: module:
- text - text
@ -30,4 +32,6 @@ content:
region: content region: content
hidden: hidden:
field_media: true field_media: true
field_related_concept: true
field_tags: true
langcode: true langcode: true

View File

@ -0,0 +1,28 @@
uuid: 0d779f9d-fce8-4b5c-a29c-9cebea2af92f
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_related_concept
- node.type.concept
id: node.concept.field_related_concept
field_name: field_related_concept
entity_type: node
bundle: concept
label: 'Related concept'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
concept: concept
sort:
field: _none
direction: ASC
auto_create: true
auto_create_bundle: ''
field_type: entity_reference

View File

@ -0,0 +1,29 @@
uuid: f5fade64-73dc-420b-8c1f-ab4fe3355a52
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_tags
- node.type.concept
- taxonomy.vocabulary.tags
id: node.concept.field_tags
field_name: field_tags
entity_type: node
bundle: concept
label: Tags
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
tags: tags
sort:
field: name
direction: asc
auto_create: true
auto_create_bundle: ''
field_type: entity_reference

View File

@ -0,0 +1,19 @@
uuid: b8ef611d-a485-416c-a944-7c971db3715a
langcode: en
status: true
dependencies:
module:
- node
id: node.field_related_concept
field_name: field_related_concept
entity_type: node
type: entity_reference
settings:
target_type: node
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,3 +1,3 @@
_core: _core:
default_config_hash: 2OMXCScXUOLSYID9-phjO4q36nnnaMWNUlDxEqZzG1U default_config_hash: 2OMXCScXUOLSYID9-phjO4q36nnnaMWNUlDxEqZzG1U
use_admin_theme: false use_admin_theme: true