From 15ade6f7fc3f266e3714bde26ddad2f9b765204d Mon Sep 17 00:00:00 2001 From: David Blankenship Date: Mon, 7 Oct 2024 10:44:57 -0400 Subject: [PATCH] feat(YSP-672): use field_metatags on documents --- ...ld.field.media.document.field_metatags.yml | 21 +++++++++++++++++++ .../field.storage.media.field_metatags.yml | 19 +++++++++++++++++ .../config/sync/metatag.settings.yml | 12 ++++++++--- 3 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml create mode 100644 web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml new file mode 100644 index 0000000000..6cc7699742 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_metatags.yml @@ -0,0 +1,21 @@ +uuid: 04b2e049-3bb3-4f6d-bd72-0d6b20e50142 +langcode: en +status: true +dependencies: + config: + - field.storage.media.field_metatags + - media.type.document + module: + - metatag +id: media.document.field_metatags +field_name: field_metatags +entity_type: media +bundle: document +label: Metatags +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml new file mode 100644 index 0000000000..27059b8046 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_metatags.yml @@ -0,0 +1,19 @@ +uuid: c6f18928-63cc-4dc6-910b-5e240d724fb2 +langcode: en +status: true +dependencies: + module: + - media + - metatag +id: media.field_metatags +field_name: field_metatags +entity_type: media +type: metatag +settings: { } +module: metatag +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml b/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml index e3681c1bbe..9240e19595 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/metatag.settings.yml @@ -1,18 +1,24 @@ entity_type_groups: + media: + document: + ai_engine: ai_engine node: event: basic: basic page: basic: basic + ai_engine: ai_engine post: basic: basic open_graph: open_graph +separator: ',' tag_trim_method: beforeValue +use_maxlength: true tag_trim_maxlength: - metatag_maxlength_abstract: null - metatag_maxlength_description: null metatag_maxlength_title: null - metatag_maxlength_og_description: null + metatag_maxlength_description: null + metatag_maxlength_abstract: null metatag_maxlength_og_site_name: null metatag_maxlength_og_title: null + metatag_maxlength_og_description: null tag_scroll_max_height: ''