Skip to content

Commit

Permalink
Merge pull request #381 from AmazeeLabs/SLB-497-centralised-seo-settings
Browse files Browse the repository at this point in the history
SLB-497: Centralised seo settings
  • Loading branch information
chindris authored Jan 20, 2025
2 parents 5ec28ec + e276a38 commit 9c5dd59
Show file tree
Hide file tree
Showing 31 changed files with 985 additions and 57 deletions.
74 changes: 61 additions & 13 deletions apps/cms/config/sync/core.entity_form_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,46 @@ dependencies:
config:
- field.field.node.page.body
- field.field.node.page.field_metatags
- field.field.node.page.field_seo_description
- field.field.node.page.field_seo_image
- field.field.node.page.field_seo_title
- node.type.page
- workflows.workflow.basic
module:
- content_moderation
- field_group
- media_library
- metatag
- path
- text
third_party_settings:
field_group:
group_seo:
children:
- field_seo_title
- field_seo_description
- field_seo_image
label: 'SEO Information'
region: content
parent_name: ''
weight: 16
format_type: details
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
open: false
description: ''
required_fields: true
id: node.page.default
targetEntityType: node
bundle: page
mode: default
content:
body:
type: text_textarea_with_summary
weight: 121
weight: 11
region: content
settings:
rows: 9
Expand All @@ -29,74 +54,97 @@ content:
third_party_settings: { }
created:
type: datetime_timestamp
weight: 10
weight: 3
region: content
settings: { }
third_party_settings: { }
field_metatags:
type: metatag_firehose
weight: 122
weight: 12
region: content
settings:
sidebar: true
use_details: true
third_party_settings: { }
field_seo_description:
type: string_textarea
weight: 14
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_seo_image:
type: media_library_widget
weight: 15
region: content
settings:
media_types: { }
third_party_settings: { }
field_seo_title:
type: string_textfield
weight: 13
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
weight: 1
region: content
settings:
include_locked: true
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 100
weight: 9
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 30
weight: 7
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 15
weight: 5
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 120
weight: 10
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 16
weight: 6
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: -5
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
translation:
weight: 10
weight: 4
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
weight: 2
region: content
settings:
match_operator: CONTAINS
Expand All @@ -105,7 +153,7 @@ content:
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 50
weight: 8
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ dependencies:
- core.entity_form_mode.node.split
- field.field.node.page.body
- field.field.node.page.field_metatags
- field.field.node.page.field_seo_description
- field.field.node.page.field_seo_image
- field.field.node.page.field_seo_title
- node.type.page
- workflows.workflow.basic
module:
Expand Down Expand Up @@ -101,3 +104,6 @@ content:
third_party_settings: { }
hidden:
body: true
field_seo_description: true
field_seo_image: true
field_seo_title: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ dependencies:
config:
- field.field.node.page.body
- field.field.node.page.field_metatags
- field.field.node.page.field_seo_description
- field.field.node.page.field_seo_image
- field.field.node.page.field_seo_title
- node.type.page
module:
- metatag
Expand Down Expand Up @@ -37,8 +40,18 @@ content:
third_party_settings: { }
weight: 2
region: content
field_seo_title:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 3
region: content
hidden:
body: true
field_seo_description: true
field_seo_image: true
langcode: true
links: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ dependencies:
- core.entity_view_mode.node.global_search
- field.field.node.page.body
- field.field.node.page.field_metatags
- field.field.node.page.field_seo_description
- field.field.node.page.field_seo_image
- field.field.node.page.field_seo_title
- node.type.page
module:
- gutenberg
Expand All @@ -32,9 +35,25 @@ content:
third_party_settings: { }
weight: 0
region: content
field_seo_description:
type: basic_string
label: hidden
settings: { }
third_party_settings: { }
weight: 3
region: content
field_seo_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
hidden:
content_moderation_control: true
external_preview_link: true
field_seo_image: true
langcode: true
links: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.field.node.page.body
- field.field.node.page.field_metatags
- field.field.node.page.field_seo_description
- field.field.node.page.field_seo_image
- field.field.node.page.field_seo_title
- node.type.page
module:
- silverback_external_preview
Expand Down Expand Up @@ -46,4 +49,8 @@ content:
region: content
hidden:
field_metatags: true
field_seo_description: true
field_seo_image: true
field_seo_title: true
langcode: true
search_api_excerpt: true
1 change: 1 addition & 0 deletions apps/cms/config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module:
menu_link_content: 0
menu_ui: 0
metatag: 0
metatag_open_graph: 0
mysql: 0
node: 0
options: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 00985ef6-371f-49c4-ad7e-27bb9456fde0
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_seo_description
- node.type.page
id: node.page.field_seo_description
field_name: field_seo_description
entity_type: node
bundle: page
label: 'SEO Description'
description: 'Write a description for search engines and social media sites.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
29 changes: 29 additions & 0 deletions apps/cms/config/sync/field.field.node.page.field_seo_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: cb4d8c10-3dda-4bb1-b55d-a0ce6e7f2aa5
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_seo_image
- media.type.image
- node.type.page
id: node.page.field_seo_image
field_name: field_seo_image
entity_type: node
bundle: page
label: 'SEO Image'
description: 'Upload an image to be used when the page is shared on social media sites.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image: image
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
19 changes: 19 additions & 0 deletions apps/cms/config/sync/field.field.node.page.field_seo_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 7ee97342-4903-44e7-aff2-61fa1d1d1e03
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_seo_title
- node.type.page
id: node.page.field_seo_title
field_name: field_seo_title
entity_type: node
bundle: page
label: 'SEO Title'
description: 'Use this field to overwrite the default HTML page title for SEO.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
19 changes: 19 additions & 0 deletions apps/cms/config/sync/field.storage.node.field_seo_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 4cd1813f-ee32-4bfb-9869-950ca3f30d31
langcode: en
status: true
dependencies:
module:
- node
id: node.field_seo_description
field_name: field_seo_description
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
20 changes: 20 additions & 0 deletions apps/cms/config/sync/field.storage.node.field_seo_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 5471835f-a39a-4ec8-8b69-fbe75208e015
langcode: en
status: true
dependencies:
module:
- media
- node
id: node.field_seo_image
field_name: field_seo_image
entity_type: node
type: entity_reference
settings:
target_type: media
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading

0 comments on commit 9c5dd59

Please sign in to comment.