Commit d4ed3b53 authored by l26yan's avatar l26yan
Browse files

ISTWCMS-5294 Add Meta tag section to opportunities

parent 1f451b17
......@@ -2,6 +2,9 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.uw_ct_opportunity.field_uw_meta_description
- field.field.node.uw_ct_opportunity.field_uw_meta_image
- field.field.node.uw_ct_opportunity.field_uw_meta_tags
- field.field.node.uw_ct_opportunity.field_uw_opportunity_additional
- field.field.node.uw_ct_opportunity.field_uw_opportunity_contact
- field.field.node.uw_ct_opportunity.field_uw_opportunity_date
......@@ -24,6 +27,8 @@ dependencies:
- datetime
- field_group
- link
- media_library
- metatag
- path
- text
third_party_settings:
......@@ -95,6 +100,22 @@ third_party_settings:
description: ''
required_fields: true
label: Links
group_uw_meta_info:
children:
- field_uw_meta_description
- field_uw_meta_image
- field_uw_meta_tags
parent_name: ''
weight: 15
format_type: fieldset
region: content
format_settings:
show_empty_fields: false
id: ''
classes: ''
description: ''
required_fields: true
label: 'Meta tag information for social media sharing/search/etc.'
id: node.uw_ct_opportunity.default
targetEntityType: node
bundle: uw_ct_opportunity
......@@ -102,10 +123,37 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 11
weight: 8
region: content
settings: { }
third_party_settings: { }
field_uw_meta_description:
weight: 17
settings:
rows: 3
placeholder: ''
third_party_settings:
maxlength:
maxlength_js: 160
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
maxlength_js_truncate_html: false
type: string_textarea
region: content
field_uw_meta_image:
weight: 18
settings:
media_types: { }
third_party_settings: { }
type: media_library_widget
region: content
field_uw_meta_tags:
weight: 19
settings:
sidebar: false
third_party_settings: { }
type: metatag_firehose
region: content
field_uw_opportunity_additional:
weight: 6
settings:
......@@ -222,20 +270,20 @@ content:
region: content
langcode:
type: language_select
weight: 9
weight: 6
region: content
settings:
include_locked: true
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 16
weight: 13
settings: { }
region: content
third_party_settings: { }
path:
type: path
weight: 14
weight: 11
region: content
settings: { }
third_party_settings: { }
......@@ -243,21 +291,21 @@ content:
type: boolean_checkbox
settings:
display_label: true
weight: 12
weight: 9
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 17
weight: 14
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 13
weight: 10
region: content
third_party_settings: { }
title:
......@@ -270,7 +318,7 @@ content:
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 10
weight: 7
settings:
match_operator: CONTAINS
size: 60
......@@ -279,7 +327,7 @@ content:
region: content
third_party_settings: { }
url_redirects:
weight: 15
weight: 12
region: content
settings: { }
third_party_settings: { }
......
......@@ -2,6 +2,9 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.uw_ct_opportunity.field_uw_meta_description
- field.field.node.uw_ct_opportunity.field_uw_meta_image
- field.field.node.uw_ct_opportunity.field_uw_meta_tags
- field.field.node.uw_ct_opportunity.field_uw_opportunity_additional
- field.field.node.uw_ct_opportunity.field_uw_opportunity_contact
- field.field.node.uw_ct_opportunity.field_uw_opportunity_date
......@@ -26,6 +29,7 @@ dependencies:
- layout_builder_restrictions
- layout_discovery
- link
- metatag
- text
- user
third_party_settings:
......@@ -37,7 +41,53 @@ third_party_settings:
layout_id: layout_onecol
layout_settings:
label: ''
components: { }
components:
12950db8-4547-4e75-a1fd-821364c2e8a6:
uuid: 12950db8-4547-4e75-a1fd-821364c2e8a6
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'field_block:node:uw_ct_opportunity:field_uw_meta_image'
formatter:
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
additional: { }
weight: 0
af12f277-c791-4464-ba69-977210c0bb6f:
uuid: af12f277-c791-4464-ba69-977210c0bb6f
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'field_block:node:uw_ct_opportunity:field_uw_meta_description'
formatter:
label: above
settings: { }
third_party_settings: { }
type: basic_string
additional: { }
weight: 1
4dcd7f78-dda6-4bde-98be-6e3a84e518ed:
uuid: 4dcd7f78-dda6-4bde-98be-6e3a84e518ed
region: content
configuration:
label_display: '0'
context_mapping:
entity: layout_builder.entity
id: 'field_block:node:uw_ct_opportunity:field_uw_meta_tags'
formatter:
label: above
settings: { }
third_party_settings: { }
type: metatag_empty_formatter
additional: { }
weight: 2
third_party_settings: { }
layout_builder_restrictions:
allowed_block_categories: { }
......@@ -62,6 +112,28 @@ content:
settings: { }
third_party_settings: { }
region: content
field_uw_meta_description:
weight: 117
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_uw_meta_image:
weight: 116
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
field_uw_meta_tags:
weight: 118
label: above
settings: { }
third_party_settings: { }
type: metatag_empty_formatter
region: content
field_uw_opportunity_additional:
weight: 114
label: above
......
......@@ -3,6 +3,9 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.uw_ct_opportunity.field_uw_meta_description
- field.field.node.uw_ct_opportunity.field_uw_meta_image
- field.field.node.uw_ct_opportunity.field_uw_meta_tags
- field.field.node.uw_ct_opportunity.field_uw_opportunity_additional
- field.field.node.uw_ct_opportunity.field_uw_opportunity_contact
- field.field.node.uw_ct_opportunity.field_uw_opportunity_date
......@@ -39,6 +42,9 @@ content:
third_party_settings: { }
region: content
hidden:
field_uw_meta_description: true
field_uw_meta_image: true
field_uw_meta_tags: true
field_uw_opportunity_additional: true
field_uw_opportunity_contact: true
field_uw_opportunity_date: true
......
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_uw_meta_description
- node.type.uw_ct_opportunity
module:
- require_on_publish
third_party_settings:
require_on_publish:
require_on_publish: true
id: node.uw_ct_opportunity.field_uw_meta_description
field_name: field_uw_meta_description
entity_type: node
bundle: uw_ct_opportunity
label: 'Description of content'
description: 'A brief and concise description of the page''s content. Recommended: no more than one or two sentences.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_uw_meta_image
- media.type.uw_mt_image
- node.type.uw_ct_opportunity
id: node.uw_ct_opportunity.field_uw_meta_image
field_name: field_uw_meta_image
entity_type: node
bundle: uw_ct_opportunity
label: 'Associated image'
description: 'An image associated with this page, for use as a thumbnail in social networks and other services. Recommended aspect ratio: 1.9:1. If no image is provided, the University of Waterloo logo will be used.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
uw_mt_image: uw_mt_image
sort:
field: created
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_uw_meta_tags
- node.type.uw_ct_opportunity
module:
- metatag
id: node.uw_ct_opportunity.field_uw_meta_tags
field_name: field_uw_meta_tags
entity_type: node
bundle: uw_ct_opportunity
label: 'Advanced configuration'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: metatag
......@@ -4,6 +4,7 @@ type: module
core_version_requirement: '^8.9 || ^9'
dependencies:
- 'allowed_formats:allowed_formats'
- 'better_exposed_filters:better_exposed_filters'
- 'drupal:content_moderation'
- 'drupal:datetime'
- 'drupal:field'
......@@ -11,6 +12,7 @@ dependencies:
- 'drupal:layout_builder'
- 'drupal:layout_discovery'
- 'drupal:link'
- 'drupal:media_library'
- 'drupal:menu_ui'
- 'drupal:node'
- 'drupal:options'
......@@ -22,6 +24,9 @@ dependencies:
- 'entity_browser_block_layout:entity_browser_block_layout'
- 'field_group:field_group'
- 'layout_builder_restrictions:layout_builder_restrictions'
- 'metatag:metatag'
- 'node_revision_delete:node_revision_delete'
- 'require_on_publish:require_on_publish'
- 'smart_date:smart_date'
- 'uw_cfg_common:uw_cfg_common'
- 'uw_media:uw_media'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment