Add the topic field to the page content type
This commit is contained in:
parent
dab6ac479b
commit
d79c79a810
9 changed files with 243 additions and 25 deletions
|
@ -7,6 +7,7 @@ dependencies:
|
||||||
- field.field.node.page.field_body_paragraph
|
- field.field.node.page.field_body_paragraph
|
||||||
- field.field.node.page.field_meta_tags
|
- field.field.node.page.field_meta_tags
|
||||||
- field.field.node.page.field_summary
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
- node.type.page
|
- node.type.page
|
||||||
module:
|
module:
|
||||||
- metatag
|
- metatag
|
||||||
|
@ -23,11 +24,13 @@ content:
|
||||||
created:
|
created:
|
||||||
type: datetime_timestamp
|
type: datetime_timestamp
|
||||||
weight: 4
|
weight: 4
|
||||||
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
region: content
|
|
||||||
field_body_paragraph:
|
field_body_paragraph:
|
||||||
|
type: entity_reference_paragraphs
|
||||||
weight: 2
|
weight: 2
|
||||||
|
region: content
|
||||||
settings:
|
settings:
|
||||||
title: Paragraph
|
title: Paragraph
|
||||||
title_plural: Paragraphs
|
title_plural: Paragraphs
|
||||||
|
@ -36,58 +39,62 @@ content:
|
||||||
form_display_mode: default
|
form_display_mode: default
|
||||||
default_paragraph_type: text
|
default_paragraph_type: text
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: entity_reference_paragraphs
|
|
||||||
region: content
|
|
||||||
field_meta_tags:
|
field_meta_tags:
|
||||||
|
type: metatag_firehose
|
||||||
weight: 6
|
weight: 6
|
||||||
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: metatag_firehose
|
|
||||||
region: content
|
|
||||||
field_summary:
|
field_summary:
|
||||||
|
type: text_textarea
|
||||||
weight: 1
|
weight: 1
|
||||||
|
region: content
|
||||||
settings:
|
settings:
|
||||||
rows: 5
|
rows: 5
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: text_textarea
|
field_topics:
|
||||||
|
type: options_select
|
||||||
|
weight: 6
|
||||||
region: content
|
region: content
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
path:
|
path:
|
||||||
type: path
|
type: path
|
||||||
weight: 5
|
weight: 5
|
||||||
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
region: content
|
|
||||||
status:
|
status:
|
||||||
type: boolean_checkbox
|
type: boolean_checkbox
|
||||||
settings:
|
|
||||||
display_label: true
|
|
||||||
weight: 7
|
weight: 7
|
||||||
region: content
|
region: content
|
||||||
|
settings:
|
||||||
|
display_label: true
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
title:
|
title:
|
||||||
type: string_textfield
|
type: string_textfield
|
||||||
weight: 0
|
weight: 0
|
||||||
|
region: content
|
||||||
settings:
|
settings:
|
||||||
size: 60
|
size: 60
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
region: content
|
|
||||||
uid:
|
uid:
|
||||||
type: entity_reference_autocomplete
|
type: entity_reference_autocomplete
|
||||||
weight: 3
|
weight: 3
|
||||||
|
region: content
|
||||||
settings:
|
settings:
|
||||||
match_operator: CONTAINS
|
match_operator: CONTAINS
|
||||||
|
match_limit: 10
|
||||||
size: 60
|
size: 60
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
match_limit: 10
|
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
region: content
|
|
||||||
url_redirects:
|
url_redirects:
|
||||||
weight: 50
|
weight: 50
|
||||||
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
region: content
|
|
||||||
hidden:
|
hidden:
|
||||||
body: true
|
body: true
|
||||||
promote: true
|
promote: true
|
||||||
|
|
41
config/core.entity_view_display.node.page.card.yml
Normal file
41
config/core.entity_view_display.node.page.card.yml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
uuid: a87820a4-4736-44a3-9f76-65ea6df04351
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- core.entity_view_mode.node.card
|
||||||
|
- field.field.node.page.body
|
||||||
|
- field.field.node.page.field_body_paragraph
|
||||||
|
- field.field.node.page.field_meta_tags
|
||||||
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
|
- node.type.page
|
||||||
|
module:
|
||||||
|
- ds
|
||||||
|
- user
|
||||||
|
id: node.page.card
|
||||||
|
targetEntityType: node
|
||||||
|
bundle: page
|
||||||
|
mode: card
|
||||||
|
content:
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_label
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings:
|
||||||
|
ds:
|
||||||
|
ds_limit: ''
|
||||||
|
weight: 6
|
||||||
|
region: ds_content
|
||||||
|
links:
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 100
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
body: true
|
||||||
|
field_body_paragraph: true
|
||||||
|
field_meta_tags: true
|
||||||
|
field_summary: true
|
||||||
|
search_api_excerpt: true
|
|
@ -7,6 +7,7 @@ dependencies:
|
||||||
- field.field.node.page.field_body_paragraph
|
- field.field.node.page.field_body_paragraph
|
||||||
- field.field.node.page.field_meta_tags
|
- field.field.node.page.field_meta_tags
|
||||||
- field.field.node.page.field_summary
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
- node.type.page
|
- node.type.page
|
||||||
module:
|
module:
|
||||||
- ds
|
- ds
|
||||||
|
@ -19,14 +20,14 @@ third_party_settings:
|
||||||
disable_css: false
|
disable_css: false
|
||||||
entity_classes: all_classes
|
entity_classes: all_classes
|
||||||
settings:
|
settings:
|
||||||
|
classes:
|
||||||
|
layout_class: { }
|
||||||
wrappers:
|
wrappers:
|
||||||
ds_content: div
|
ds_content: div
|
||||||
outer_wrapper: div
|
outer_wrapper: div
|
||||||
attributes: ''
|
attributes: ''
|
||||||
link_attribute: ''
|
link_attribute: ''
|
||||||
link_custom: ''
|
link_custom: ''
|
||||||
classes:
|
|
||||||
layout_class: { }
|
|
||||||
regions: { }
|
regions: { }
|
||||||
_core:
|
_core:
|
||||||
default_config_hash: IJqwajtBIucTAaMgGd7kE-hw_HVZOxJuku1ohZjxVUU
|
default_config_hash: IJqwajtBIucTAaMgGd7kE-hw_HVZOxJuku1ohZjxVUU
|
||||||
|
@ -34,7 +35,15 @@ id: node.page.default
|
||||||
targetEntityType: node
|
targetEntityType: node
|
||||||
bundle: page
|
bundle: page
|
||||||
mode: default
|
mode: default
|
||||||
content: { }
|
content:
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_label
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 2
|
||||||
|
region: content
|
||||||
hidden:
|
hidden:
|
||||||
body: true
|
body: true
|
||||||
field_body_paragraph: true
|
field_body_paragraph: true
|
||||||
|
|
|
@ -8,6 +8,7 @@ dependencies:
|
||||||
- field.field.node.page.field_body_paragraph
|
- field.field.node.page.field_body_paragraph
|
||||||
- field.field.node.page.field_meta_tags
|
- field.field.node.page.field_meta_tags
|
||||||
- field.field.node.page.field_summary
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
- node.type.page
|
- node.type.page
|
||||||
module:
|
module:
|
||||||
- ds
|
- ds
|
||||||
|
@ -17,19 +18,19 @@ third_party_settings:
|
||||||
ds:
|
ds:
|
||||||
layout:
|
layout:
|
||||||
id: ds_1col
|
id: ds_1col
|
||||||
path: modules/contrib/ds
|
|
||||||
library: ''
|
library: ''
|
||||||
disable_css: false
|
disable_css: false
|
||||||
entity_classes: all_classes
|
entity_classes: all_classes
|
||||||
settings:
|
settings:
|
||||||
|
classes:
|
||||||
|
layout_class: { }
|
||||||
wrappers:
|
wrappers:
|
||||||
ds_content: div
|
ds_content: div
|
||||||
outer_wrapper: div
|
outer_wrapper: div
|
||||||
attributes: ''
|
attributes: ''
|
||||||
link_attribute: ''
|
link_attribute: ''
|
||||||
link_custom: ''
|
link_custom: ''
|
||||||
classes:
|
path: modules/contrib/ds
|
||||||
layout_class: { }
|
|
||||||
regions:
|
regions:
|
||||||
ds_content:
|
ds_content:
|
||||||
- field_body_paragraph
|
- field_body_paragraph
|
||||||
|
@ -42,18 +43,26 @@ bundle: page
|
||||||
mode: full
|
mode: full
|
||||||
content:
|
content:
|
||||||
field_body_paragraph:
|
field_body_paragraph:
|
||||||
weight: 1
|
type: entity_reference_revisions_entity_view
|
||||||
label: hidden
|
label: hidden
|
||||||
settings:
|
settings:
|
||||||
view_mode: default
|
view_mode: default
|
||||||
link: ''
|
link: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: entity_reference_revisions_entity_view
|
weight: 1
|
||||||
region: ds_content
|
region: ds_content
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_label
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 4
|
||||||
|
region: middle
|
||||||
links:
|
links:
|
||||||
weight: 2
|
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
weight: 2
|
||||||
region: ds_content
|
region: ds_content
|
||||||
hidden:
|
hidden:
|
||||||
body: true
|
body: true
|
||||||
|
|
38
config/core.entity_view_display.node.page.media.yml
Normal file
38
config/core.entity_view_display.node.page.media.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
uuid: 5739b593-6b3c-4ebd-b028-f778cdaadfee
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- core.entity_view_mode.node.media
|
||||||
|
- field.field.node.page.body
|
||||||
|
- field.field.node.page.field_body_paragraph
|
||||||
|
- field.field.node.page.field_meta_tags
|
||||||
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
|
- node.type.page
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: node.page.media
|
||||||
|
targetEntityType: node
|
||||||
|
bundle: page
|
||||||
|
mode: media
|
||||||
|
content:
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_label
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 3
|
||||||
|
region: ds_content
|
||||||
|
links:
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 100
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
body: true
|
||||||
|
field_body_paragraph: true
|
||||||
|
field_meta_tags: true
|
||||||
|
field_summary: true
|
||||||
|
search_api_excerpt: true
|
38
config/core.entity_view_display.node.page.rss.yml
Normal file
38
config/core.entity_view_display.node.page.rss.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
uuid: a0be4283-4b23-418e-992d-f612b9ed25d8
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- core.entity_view_mode.node.rss
|
||||||
|
- field.field.node.page.body
|
||||||
|
- field.field.node.page.field_body_paragraph
|
||||||
|
- field.field.node.page.field_meta_tags
|
||||||
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
|
- node.type.page
|
||||||
|
module:
|
||||||
|
- taxonomy
|
||||||
|
- user
|
||||||
|
id: node.page.rss
|
||||||
|
targetEntityType: node
|
||||||
|
bundle: page
|
||||||
|
mode: rss
|
||||||
|
content:
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_rss_category
|
||||||
|
label: inline
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 3
|
||||||
|
region: ds_content
|
||||||
|
links:
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 100
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
body: true
|
||||||
|
field_body_paragraph: true
|
||||||
|
field_meta_tags: true
|
||||||
|
field_summary: true
|
||||||
|
search_api_excerpt: true
|
38
config/core.entity_view_display.node.page.search_index.yml
Normal file
38
config/core.entity_view_display.node.page.search_index.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
uuid: c10f20c8-e846-411f-b9a5-3d346946e946
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- core.entity_view_mode.node.search_index
|
||||||
|
- field.field.node.page.body
|
||||||
|
- field.field.node.page.field_body_paragraph
|
||||||
|
- field.field.node.page.field_meta_tags
|
||||||
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
|
- node.type.page
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: node.page.search_index
|
||||||
|
targetEntityType: node
|
||||||
|
bundle: page
|
||||||
|
mode: search_index
|
||||||
|
content:
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_label
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 5
|
||||||
|
region: content
|
||||||
|
links:
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 100
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
body: true
|
||||||
|
field_body_paragraph: true
|
||||||
|
field_meta_tags: true
|
||||||
|
field_summary: true
|
||||||
|
search_api_excerpt: true
|
|
@ -8,6 +8,7 @@ dependencies:
|
||||||
- field.field.node.page.field_body_paragraph
|
- field.field.node.page.field_body_paragraph
|
||||||
- field.field.node.page.field_meta_tags
|
- field.field.node.page.field_meta_tags
|
||||||
- field.field.node.page.field_summary
|
- field.field.node.page.field_summary
|
||||||
|
- field.field.node.page.field_topics
|
||||||
- node.type.page
|
- node.type.page
|
||||||
module:
|
module:
|
||||||
- ds
|
- ds
|
||||||
|
@ -21,14 +22,14 @@ third_party_settings:
|
||||||
disable_css: false
|
disable_css: false
|
||||||
entity_classes: all_classes
|
entity_classes: all_classes
|
||||||
settings:
|
settings:
|
||||||
|
classes:
|
||||||
|
layout_class: { }
|
||||||
wrappers:
|
wrappers:
|
||||||
ds_content: div
|
ds_content: div
|
||||||
outer_wrapper: div
|
outer_wrapper: div
|
||||||
attributes: ''
|
attributes: ''
|
||||||
link_attribute: ''
|
link_attribute: ''
|
||||||
link_custom: ''
|
link_custom: ''
|
||||||
classes:
|
|
||||||
layout_class: { }
|
|
||||||
regions:
|
regions:
|
||||||
ds_content:
|
ds_content:
|
||||||
- node_title
|
- node_title
|
||||||
|
@ -52,11 +53,19 @@ mode: teaser
|
||||||
content:
|
content:
|
||||||
field_summary:
|
field_summary:
|
||||||
type: text_default
|
type: text_default
|
||||||
weight: 1
|
|
||||||
label: hidden
|
label: hidden
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
weight: 1
|
||||||
region: ds_content
|
region: ds_content
|
||||||
|
field_topics:
|
||||||
|
type: entity_reference_label
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 5
|
||||||
|
region: right
|
||||||
hidden:
|
hidden:
|
||||||
body: true
|
body: true
|
||||||
field_body_paragraph: true
|
field_body_paragraph: true
|
||||||
|
|
29
config/field.field.node.page.field_topics.yml
Normal file
29
config/field.field.node.page.field_topics.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
uuid: 51309177-e385-441d-8206-07d7615a386d
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_topics
|
||||||
|
- node.type.page
|
||||||
|
- taxonomy.vocabulary.topics
|
||||||
|
id: node.page.field_topics
|
||||||
|
field_name: field_topics
|
||||||
|
entity_type: node
|
||||||
|
bundle: page
|
||||||
|
label: Topics
|
||||||
|
description: 'Choose one or more high-level topics to categorize your content across multiple content types.'
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
handler: 'default:taxonomy_term'
|
||||||
|
handler_settings:
|
||||||
|
target_bundles:
|
||||||
|
topics: topics
|
||||||
|
sort:
|
||||||
|
field: name
|
||||||
|
direction: asc
|
||||||
|
auto_create: false
|
||||||
|
auto_create_bundle: ''
|
||||||
|
field_type: entity_reference
|
Loading…
Reference in a new issue