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_meta_tags
|
||||
- field.field.node.page.field_summary
|
||||
- field.field.node.page.field_topics
|
||||
- node.type.page
|
||||
module:
|
||||
- metatag
|
||||
|
@ -23,11 +24,13 @@ content:
|
|||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 4
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
field_body_paragraph:
|
||||
type: entity_reference_paragraphs
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
title: Paragraph
|
||||
title_plural: Paragraphs
|
||||
|
@ -36,58 +39,62 @@ content:
|
|||
form_display_mode: default
|
||||
default_paragraph_type: text
|
||||
third_party_settings: { }
|
||||
type: entity_reference_paragraphs
|
||||
region: content
|
||||
field_meta_tags:
|
||||
type: metatag_firehose
|
||||
weight: 6
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: metatag_firehose
|
||||
region: content
|
||||
field_summary:
|
||||
type: text_textarea
|
||||
weight: 1
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
type: text_textarea
|
||||
field_topics:
|
||||
type: options_select
|
||||
weight: 6
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 5
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 7
|
||||
region: content
|
||||
settings:
|
||||
display_label: true
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 3
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
match_limit: 10
|
||||
size: 60
|
||||
placeholder: ''
|
||||
match_limit: 10
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
url_redirects:
|
||||
weight: 50
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
hidden:
|
||||
body: 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_meta_tags
|
||||
- field.field.node.page.field_summary
|
||||
- field.field.node.page.field_topics
|
||||
- node.type.page
|
||||
module:
|
||||
- ds
|
||||
|
@ -19,14 +20,14 @@ third_party_settings:
|
|||
disable_css: false
|
||||
entity_classes: all_classes
|
||||
settings:
|
||||
classes:
|
||||
layout_class: { }
|
||||
wrappers:
|
||||
ds_content: div
|
||||
outer_wrapper: div
|
||||
attributes: ''
|
||||
link_attribute: ''
|
||||
link_custom: ''
|
||||
classes:
|
||||
layout_class: { }
|
||||
regions: { }
|
||||
_core:
|
||||
default_config_hash: IJqwajtBIucTAaMgGd7kE-hw_HVZOxJuku1ohZjxVUU
|
||||
|
@ -34,7 +35,15 @@ id: node.page.default
|
|||
targetEntityType: node
|
||||
bundle: page
|
||||
mode: default
|
||||
content: { }
|
||||
content:
|
||||
field_topics:
|
||||
type: entity_reference_label
|
||||
label: above
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
weight: 2
|
||||
region: content
|
||||
hidden:
|
||||
body: true
|
||||
field_body_paragraph: true
|
||||
|
|
|
@ -8,6 +8,7 @@ dependencies:
|
|||
- 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
|
||||
|
@ -17,19 +18,19 @@ third_party_settings:
|
|||
ds:
|
||||
layout:
|
||||
id: ds_1col
|
||||
path: modules/contrib/ds
|
||||
library: ''
|
||||
disable_css: false
|
||||
entity_classes: all_classes
|
||||
settings:
|
||||
classes:
|
||||
layout_class: { }
|
||||
wrappers:
|
||||
ds_content: div
|
||||
outer_wrapper: div
|
||||
attributes: ''
|
||||
link_attribute: ''
|
||||
link_custom: ''
|
||||
classes:
|
||||
layout_class: { }
|
||||
path: modules/contrib/ds
|
||||
regions:
|
||||
ds_content:
|
||||
- field_body_paragraph
|
||||
|
@ -42,18 +43,26 @@ bundle: page
|
|||
mode: full
|
||||
content:
|
||||
field_body_paragraph:
|
||||
weight: 1
|
||||
type: entity_reference_revisions_entity_view
|
||||
label: hidden
|
||||
settings:
|
||||
view_mode: default
|
||||
link: ''
|
||||
third_party_settings: { }
|
||||
type: entity_reference_revisions_entity_view
|
||||
weight: 1
|
||||
region: ds_content
|
||||
field_topics:
|
||||
type: entity_reference_label
|
||||
label: hidden
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
weight: 4
|
||||
region: middle
|
||||
links:
|
||||
weight: 2
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 2
|
||||
region: ds_content
|
||||
hidden:
|
||||
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_meta_tags
|
||||
- field.field.node.page.field_summary
|
||||
- field.field.node.page.field_topics
|
||||
- node.type.page
|
||||
module:
|
||||
- ds
|
||||
|
@ -21,14 +22,14 @@ third_party_settings:
|
|||
disable_css: false
|
||||
entity_classes: all_classes
|
||||
settings:
|
||||
classes:
|
||||
layout_class: { }
|
||||
wrappers:
|
||||
ds_content: div
|
||||
outer_wrapper: div
|
||||
attributes: ''
|
||||
link_attribute: ''
|
||||
link_custom: ''
|
||||
classes:
|
||||
layout_class: { }
|
||||
regions:
|
||||
ds_content:
|
||||
- node_title
|
||||
|
@ -52,11 +53,19 @@ mode: teaser
|
|||
content:
|
||||
field_summary:
|
||||
type: text_default
|
||||
weight: 1
|
||||
label: hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 1
|
||||
region: ds_content
|
||||
field_topics:
|
||||
type: entity_reference_label
|
||||
label: hidden
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
weight: 5
|
||||
region: right
|
||||
hidden:
|
||||
body: 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