diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 823db3c2fe..22a37aedea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + persist-credentials: false - name: Install Node.js uses: actions/setup-node@v4 diff --git a/package.json b/package.json index 4a4084d13c..80d6aafe54 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,8 @@ [ "@saithodev/semantic-release-backmerge", { - "backmergeBranches": ["develop"] + "backmergeBranches": ["develop"], + "backmergeStrategy": "merge" } ], "@semantic-release/github" diff --git a/patches/selective_better_exposed_filters/selective_better_exposed_filters-3432551.patch b/patches/selective_better_exposed_filters/selective_better_exposed_filters-3432551.patch new file mode 100644 index 0000000000..629d375e34 --- /dev/null +++ b/patches/selective_better_exposed_filters/selective_better_exposed_filters-3432551.patch @@ -0,0 +1,39 @@ +From 30bf569df2f6b17d5ea64da83bf3372165bfa98a Mon Sep 17 00:00:00 2001 +From: Marc Berger +Date: Wed, 20 Mar 2024 18:41:32 -0700 +Subject: [PATCH] fix(3432551): If all exposed form elements are set to hide, + also hide the form. + +--- + .../filter/SelectiveFilterBase.php | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php b/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php +index 9d064a2..c4440b9 100644 +--- a/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php ++++ b/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php +@@ -269,6 +269,22 @@ abstract class SelectiveFilterBase { + ) + ) { + $element['#access'] = FALSE; ++ ++ // Helps with check if all elements are hidden later. ++ $element['#sef_hidden'] = TRUE; ++ ++ // If all exposed form elements are hidden, hide the form. ++ $i = 0; ++ foreach ($form['#info'] as $exposedFilter) { ++ if (isset($form[$exposedFilter['value']]['#sef_hidden']) && $form[$exposedFilter['value']]['#sef_hidden']) { ++ $i++; ++ } ++ } ++ ++ if ($i == count($form['#info'])) { ++ $form['#access'] = FALSE; ++ } ++ + } + } + } +-- +GitLab \ No newline at end of file diff --git a/web/profiles/custom/yalesites_profile/composer.json b/web/profiles/custom/yalesites_profile/composer.json index 1afe9d6182..e1080adbda 100644 --- a/web/profiles/custom/yalesites_profile/composer.json +++ b/web/profiles/custom/yalesites_profile/composer.json @@ -51,6 +51,7 @@ "drupal/formdazzle": "3.0.0", "drupal/gin": "3.0-rc6", "drupal/gin_lb": "1.0.0-rc5", + "drupal/gin_moderation_sidebar": "1.0.0", "drupal/google_analytics": "4.0.2", "drupal/hide_revision_field": "2.3", "drupal/honeypot": "2.1.3", @@ -64,7 +65,7 @@ "drupal/layout_builder_restrictions": "2.19", "drupal/layout_builder_restrictions_by_role": "1.0-alpha5", "drupal/libraries": "4.0.4", - "drupal/linkit": "6.1.2", + "drupal/linkit": "6.1.3", "drupal/mailchimp_transactional": "1.1.0", "drupal/mailsystem": "4.4", "drupal/markup": "2.0.0-beta6", @@ -78,6 +79,7 @@ "drupal/metatag": "2.0.0", "drupal/migrate_plus": "6.0.1", "drupal/migrate_tools": "6.0.2", + "drupal/moderation_sidebar": "1.7", "drupal/multiple_fields_remove_button": "2.2", "drupal/multivalue_form_element": "1.0-beta6", "drupal/node_revision_delete": "2.0.0-alpha2", @@ -97,7 +99,7 @@ "drupal/search_api_exclude": "2.0.2", "drupal/search_api_html_element_filter": "1.0.4", "drupal/section_library": "1.1.1", - "drupal/selective_better_exposed_filters": "3.0.0-beta1", + "drupal/selective_better_exposed_filters": "3.0.2", "drupal/simple_sitemap": "4.1.6", "drupal/single_content_sync": "1.4.4", "drupal/smart_date": "4.0.3", @@ -106,11 +108,12 @@ "drupal/upgrade_status": "4.0.0", "drupal/webform": "6.2.0-beta6", "drupal/wingsuit_companion": "2.1", + "drupal/workflow_buttons": "1.0.0-beta6", "jjj/chosen": "2.2.1", "laminas/laminas-escaper": "2.12", "northernco/ckeditor5-anchor-drupal": "0.4.0", "yalesites-org/ai_engine": "1.1.4", - "yalesites-org/atomic": "1.28.0", + "yalesites-org/atomic": "1.31.0", "yalesites-org/yale_cas": "1.0.4" }, "minimum-stability": "dev", @@ -167,7 +170,8 @@ }, "drupal/linkit": { "Add phone number matcher https://www.drupal.org/project/linkit/issues/3273630": "https://git.drupalcode.org/project/linkit/-/merge_requests/36.diff", - "Fix linkit autocomplete alias selection https://www.drupal.org/project/linkit/issues/2877535": "https://www.drupal.org/files/issues/2023-10-05/linkit-2877535-64.patch" + "Fix linkit autocomplete alias selection https://www.drupal.org/project/linkit/issues/2877535": "https://www.drupal.org/files/issues/2023-10-05/linkit-2877535-64.patch", + "Decode file URLs https://www.drupal.org/project/linkit/issues/3436733": "https://www.drupal.org/files/issues/2024-03-28/3436733-linkit-link-field.patch" }, "drupal/quick_node_clone": { "Fix cloning of inline blocks and paragraphs: https://www.drupal.org/project/quick_node_clone/issues/3100117": "https://www.drupal.org/files/issues/2023-04-25/quick-node-clone--inline-blocks--3100117-32.patch" @@ -175,14 +179,14 @@ "drupal/layout_builder_browser": { "Add grouping of reusable blocks (3409153) and add fallback images (3408935) - can't use both patches from d.o would cause merge conflict, combined patch": "patches/layout_builder_browser/3408935-and-3409153-8.patch" }, - "drupal/section_library": { - "Fix access check issues on add_to_template link: https://www.drupal.org/project/section_library/issues/3241715": "https://www.drupal.org/files/issues/2022-09-21/3241715-6.patch" - }, "drupal/smart_date": { "Fix deprecation:": "https://git.drupalcode.org/project/smart_date/-/merge_requests/63.diff" }, "drupal/focal_point": { "Limit image styles on preview page": "https://www.drupal.org/files/issues/2021-08-13/2830678-29.patch" + }, + "drupal/selective_better_exposed_filters": { + "Hide form when no options are available:": "patches/selective_better_exposed_filters/selective_better_exposed_filters-3432551.patch" } } } diff --git a/web/profiles/custom/yalesites_profile/config/sync/block_content.type.reference_card.yml b/web/profiles/custom/yalesites_profile/config/sync/block_content.type.reference_card.yml new file mode 100644 index 0000000000..048dbde1e1 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/block_content.type.reference_card.yml @@ -0,0 +1,33 @@ +uuid: 3ff3d3c3-7213-4dba-85f0-db24528b1a0a +langcode: en +status: true +dependencies: + module: + - entity_redirect +third_party_settings: + entity_redirect: + redirect: + add: + active: 0 + destination: default + url: '' + external: '' + edit: + active: 0 + destination: default + url: '' + external: '' + delete: + active: 0 + destination: default + url: '' + external: '' + anonymous: + active: 0 + destination: default + url: '' + external: '' +id: reference_card +label: 'Reference card' +revision: 0 +description: 'Select an existing Post, Event, or Profile to display a single card.' diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.cta_banner.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.cta_banner.default.yml index bf577fb140..84c7f4d48f 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.cta_banner.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.cta_banner.default.yml @@ -8,6 +8,7 @@ dependencies: - field.field.block_content.cta_banner.field_heading_level - field.field.block_content.cta_banner.field_instructions - field.field.block_content.cta_banner.field_link + - field.field.block_content.cta_banner.field_link_two - field.field.block_content.cta_banner.field_media - field.field.block_content.cta_banner.field_style_color - field.field.block_content.cta_banner.field_style_position @@ -62,6 +63,16 @@ content: linkit_profile: default linkit_auto_link_text: false third_party_settings: { } + field_link_two: + type: linkit + weight: 12 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + linkit_profile: default + linkit_auto_link_text: false + third_party_settings: { } field_media: type: media_library_widget weight: 2 diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.grand_hero.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.grand_hero.default.yml index b0076dd608..460b294185 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.grand_hero.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.grand_hero.default.yml @@ -8,6 +8,7 @@ dependencies: - field.field.block_content.grand_hero.field_heading_level - field.field.block_content.grand_hero.field_instructions - field.field.block_content.grand_hero.field_link + - field.field.block_content.grand_hero.field_link_two - field.field.block_content.grand_hero.field_media - field.field.block_content.grand_hero.field_style_position - field.field.block_content.grand_hero.field_style_variation @@ -42,7 +43,7 @@ content: maxlength_js_enforce: false field_heading_level: type: options_select - weight: 8 + weight: 9 region: content settings: { } third_party_settings: { } @@ -53,6 +54,16 @@ content: settings: { } third_party_settings: { } field_link: + type: linkit + weight: 6 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + linkit_profile: default + linkit_auto_link_text: false + third_party_settings: { } + field_link_two: type: linkit weight: 7 region: content @@ -75,13 +86,13 @@ content: show_edit: '1' field_style_position: type: options_select - weight: 7 + weight: 8 region: content settings: { } third_party_settings: { } field_style_variation: type: options_select - weight: 6 + weight: 5 region: content settings: { } third_party_settings: { } diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.reference_card.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.reference_card.default.yml new file mode 100644 index 0000000000..d473af8068 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.block_content.reference_card.default.yml @@ -0,0 +1,52 @@ +uuid: b383cf75-8b98-4bc8-aa82-fee7ca036f80 +langcode: en +status: true +dependencies: + config: + - block_content.type.reference_card + - field.field.block_content.reference_card.field_content_ref + - field.field.block_content.reference_card.field_style_variation + module: + - hide_revision_field +id: block_content.reference_card.default +targetEntityType: block_content +bundle: reference_card +mode: default +content: + field_content_ref: + type: entity_reference_autocomplete + weight: 2 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + field_style_variation: + type: options_select + weight: 3 + region: content + settings: { } + third_party_settings: { } + info: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + revision_log: + type: hide_revision_field_log_widget + weight: 1 + region: content + settings: + rows: 5 + placeholder: '' + show: true + default: '' + permission_based: false + allow_user_settings: true + third_party_settings: { } +hidden: { } diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.default.yml index 3acdd8ae0a..d6e60fdec9 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.default.yml @@ -4,8 +4,10 @@ status: true dependencies: config: - field.field.media.background_video.field_media_video_file + - field.field.media.background_video.field_tags - media.type.background_video module: + - chosen_field - file id: media.background_video.default targetEntityType: media @@ -19,6 +21,12 @@ content: settings: progress_indicator: throbber third_party_settings: { } + field_tags: + type: chosen_select + weight: 1 + region: content + settings: { } + third_party_settings: { } name: type: string_textfield weight: 0 diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.media_library.yml index 37af120566..592fc2aa56 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.background_video.media_library.yml @@ -5,12 +5,29 @@ dependencies: config: - core.entity_form_mode.media.media_library - field.field.media.background_video.field_media_video_file + - field.field.media.background_video.field_tags - media.type.background_video + module: + - chosen_field + - file id: media.background_video.media_library targetEntityType: media bundle: background_video mode: media_library content: + field_media_video_file: + type: file_generic + weight: 1 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } + field_tags: + type: chosen_select + weight: 2 + region: content + settings: { } + third_party_settings: { } name: type: string_textfield weight: 0 @@ -21,7 +38,6 @@ content: third_party_settings: { } hidden: created: true - field_media_video_file: true path: true revision_log_message: true status: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml index 636636aaf6..105d67861d 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.default.yml @@ -4,10 +4,11 @@ status: true dependencies: config: - field.field.media.document.field_media_file + - field.field.media.document.field_tags - media.type.document module: + - chosen_field - file - - hide_revision_field id: media.document.default targetEntityType: media bundle: document @@ -20,6 +21,12 @@ content: settings: progress_indicator: throbber third_party_settings: { } + field_tags: + type: chosen_select + weight: 2 + region: content + settings: { } + third_party_settings: { } name: type: string_textfield weight: 0 @@ -28,20 +35,9 @@ content: size: 60 placeholder: '' third_party_settings: { } - revision_log_message: - type: hide_revision_field_log_widget - weight: 80 - region: content - settings: - rows: 5 - placeholder: '' - show: false - default: '' - permission_based: false - allow_user_settings: true - third_party_settings: { } hidden: created: true path: true + revision_log_message: true status: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml index 4b4c56d075..a7cdcf1d49 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.document.media_library.yml @@ -5,12 +5,29 @@ dependencies: config: - core.entity_form_mode.media.media_library - field.field.media.document.field_media_file + - field.field.media.document.field_tags - media.type.document + module: + - chosen_field + - file id: media.document.media_library targetEntityType: media bundle: document mode: media_library content: + field_media_file: + type: file_generic + weight: 1 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } + field_tags: + type: chosen_select + weight: 3 + region: content + settings: { } + third_party_settings: { } name: type: string_textfield weight: 0 @@ -19,21 +36,9 @@ content: size: 60 placeholder: '' third_party_settings: { } - revision_log_message: - type: hide_revision_field_log_widget - weight: 80 - region: content - settings: - rows: 5 - placeholder: '' - show: true - default: '' - permission_based: false - allow_user_settings: true - third_party_settings: { } hidden: created: true - field_media_file: true path: true + revision_log_message: true status: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.default.yml index 38c93a1e0d..e435617070 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.default.yml @@ -4,11 +4,12 @@ status: true dependencies: config: - field.field.media.image.field_media_image + - field.field.media.image.field_tags - image.style.crop_thumbnail - media.type.image module: + - chosen_field - focal_point - - hide_revision_field id: media.image.default targetEntityType: media bundle: image @@ -31,21 +32,16 @@ content: '3_1_600': '3_1_600' '3_2_640': '3_2_640' third_party_settings: { } - revision_log_message: - type: hide_revision_field_log_widget - weight: 80 + field_tags: + type: chosen_select + weight: 1 region: content - settings: - rows: 5 - placeholder: '' - show: false - default: '' - permission_based: false - allow_user_settings: true + settings: { } third_party_settings: { } hidden: created: true name: true path: true + revision_log_message: true status: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.media_library.yml index 4205f791c7..1e6fb77ae6 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.image.media_library.yml @@ -5,11 +5,12 @@ dependencies: config: - core.entity_form_mode.media.media_library - field.field.media.image.field_media_image + - field.field.media.image.field_tags - image.style.crop_thumbnail - media.type.image module: + - chosen_field - focal_point - - hide_revision_field id: media.image.media_library targetEntityType: media bundle: image @@ -32,21 +33,16 @@ content: '3_1_600': '3_1_600' '3_2_640': '3_2_640' third_party_settings: { } - revision_log_message: - type: hide_revision_field_log_widget - weight: 80 + field_tags: + type: chosen_select + weight: 1 region: content - settings: - rows: 5 - placeholder: '' - show: false - default: '' - permission_based: false - allow_user_settings: true + settings: { } third_party_settings: { } hidden: created: true name: true path: true + revision_log_message: true status: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.default.yml index 304348b445..748cc6b5f5 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.default.yml @@ -4,8 +4,10 @@ status: true dependencies: config: - field.field.media.video.field_media_oembed_video + - field.field.media.video.field_tags - media.type.video module: + - chosen_field - media id: media.video.default targetEntityType: media @@ -20,6 +22,12 @@ content: size: 60 placeholder: '' third_party_settings: { } + field_tags: + type: chosen_select + weight: 1 + region: content + settings: { } + third_party_settings: { } hidden: created: true name: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.media_library.yml index 75e39e45b9..2b3273d4dc 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.media.video.media_library.yml @@ -5,23 +5,33 @@ dependencies: config: - core.entity_form_mode.media.media_library - field.field.media.video.field_media_oembed_video + - field.field.media.video.field_tags - media.type.video + module: + - chosen_field + - media id: media.video.media_library targetEntityType: media bundle: video mode: media_library content: - name: - type: string_textfield + field_media_oembed_video: + type: oembed_textfield weight: 0 region: content settings: size: 60 placeholder: '' third_party_settings: { } + field_tags: + type: chosen_select + weight: 1 + region: content + settings: { } + third_party_settings: { } hidden: created: true - field_media_oembed_video: true + name: true path: true revision_log_message: true status: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.profile.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.profile.default.yml index 8ca2c5e551..f6e3a6e54c 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.profile.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.profile.default.yml @@ -33,6 +33,7 @@ dependencies: - metatag - path - text + - workflow_buttons third_party_settings: field_group: group_teaser: @@ -42,8 +43,8 @@ third_party_settings: - field_teaser_media label: Teaser region: content - parent_name: group_general_info - weight: 36 + parent_name: '' + weight: 4 format_type: fieldset format_settings: classes: '' @@ -58,7 +59,7 @@ third_party_settings: label: 'Publishing Settings' region: content parent_name: '' - weight: 5 + weight: 9 format_type: details_sidebar format_settings: classes: '' @@ -68,43 +69,21 @@ third_party_settings: description: '' required_fields: true weight: 0 - group_profile_tabs: - children: - - group_general_info - - group_contact_info - label: 'Profile Tabs' - region: content - parent_name: '' - weight: 0 - format_type: tabs - format_settings: - classes: '' - show_empty_fields: false - id: '' - direction: horizontal - width_breakpoint: 640 group_general_info: children: - - field_honorific_prefix - - field_first_name - - field_last_name - title - - field_position - - field_subtitle - - field_department + - group_two_column - field_affiliation - - field_media - - group_teaser - label: 'General Info' + - field_tags + label: 'General Information' region: content - parent_name: group_profile_tabs - weight: 23 - format_type: tab + parent_name: '' + weight: 0 + format_type: fieldset format_settings: classes: '' show_empty_fields: false id: '' - formatter: closed description: '' required_fields: true group_contact_info: @@ -112,26 +91,49 @@ third_party_settings: - field_email - field_telephone - field_address - - field_tags - label: 'Contact Info' + label: 'Contact Information' region: content - parent_name: group_profile_tabs - weight: 24 - format_type: tab + parent_name: '' + weight: 1 + format_type: fieldset format_settings: classes: '' show_empty_fields: false id: '' - formatter: closed description: '' required_fields: true + group_two_column: + children: + - field_first_name + - field_last_name + - field_honorific_prefix + - field_position + - field_subtitle + - field_department + label: 'Two Column Wrapper' + region: content + parent_name: group_general_info + weight: 30 + format_type: html_element + format_settings: + classes: ys-gin-two-column-wrapper + show_empty_fields: false + id: '' + element: div + show_label: false + label_element: h3 + label_element_classes: '' + attributes: '' + effect: none + speed: fast + required_fields: true group_external_link: children: - field_external_source label: 'External Link' region: content parent_name: '' - weight: 7 + weight: 11 format_type: details_sidebar format_settings: classes: '' @@ -156,7 +158,7 @@ content: third_party_settings: { } field_affiliation: type: options_select - weight: 34 + weight: 36 region: content settings: { } third_party_settings: { } @@ -194,7 +196,7 @@ content: third_party_settings: { } field_honorific_prefix: type: string_textfield - weight: 27 + weight: 30 region: content settings: size: 60 @@ -217,7 +219,7 @@ content: third_party_settings: { } field_media: type: media_library_widget - weight: 35 + weight: 2 region: content settings: media_types: { } @@ -226,7 +228,7 @@ content: show_edit: '1' field_metatags: type: metatag_firehose - weight: 4 + weight: 8 region: content settings: sidebar: true @@ -257,7 +259,7 @@ content: maxlength_js_enforce: false field_tags: type: chosen_select - weight: 7 + weight: 37 region: content settings: { } third_party_settings: { } @@ -299,20 +301,27 @@ content: size: 60 placeholder: '' third_party_settings: { } + moderation_state: + type: workflow_buttons + weight: 6 + region: content + settings: + show_current_state: false + third_party_settings: { } path: type: path - weight: 1 + weight: 5 region: content settings: { } third_party_settings: { } simple_sitemap: - weight: 8 + weight: 12 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 6 + weight: 10 region: content settings: display_label: true @@ -326,14 +335,14 @@ content: third_party_settings: { } title: type: string_textfield - weight: 30 + weight: 29 region: content settings: size: 60 placeholder: '' third_party_settings: { } url_redirects: - weight: 2 + weight: 7 region: content settings: { } third_party_settings: { } diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.cta_banner.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.cta_banner.default.yml index 7fb869430f..6689533ddb 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.cta_banner.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.cta_banner.default.yml @@ -8,6 +8,7 @@ dependencies: - field.field.block_content.cta_banner.field_heading_level - field.field.block_content.cta_banner.field_instructions - field.field.block_content.cta_banner.field_link + - field.field.block_content.cta_banner.field_link_two - field.field.block_content.cta_banner.field_media - field.field.block_content.cta_banner.field_style_color - field.field.block_content.cta_banner.field_style_position @@ -33,7 +34,7 @@ content: label: hidden settings: { } third_party_settings: { } - weight: 6 + weight: 7 region: content field_link: type: link_separate @@ -47,6 +48,18 @@ content: third_party_settings: { } weight: 3 region: content + field_link_two: + type: link_separate + label: hidden + settings: + trim_length: null + url_only: false + url_plain: false + rel: '0' + target: '0' + third_party_settings: { } + weight: 4 + region: content field_media: type: entity_reference_entity_view label: hidden @@ -61,14 +74,14 @@ content: label: hidden settings: { } third_party_settings: { } - weight: 4 + weight: 5 region: content field_style_position: type: list_key label: hidden settings: { } third_party_settings: { } - weight: 5 + weight: 6 region: content field_text: type: text_default diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.grand_hero.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.grand_hero.default.yml index fed2818560..fa2a0922dc 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.grand_hero.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.grand_hero.default.yml @@ -8,6 +8,7 @@ dependencies: - field.field.block_content.grand_hero.field_heading_level - field.field.block_content.grand_hero.field_instructions - field.field.block_content.grand_hero.field_link + - field.field.block_content.grand_hero.field_link_two - field.field.block_content.grand_hero.field_media - field.field.block_content.grand_hero.field_style_position - field.field.block_content.grand_hero.field_style_variation @@ -47,6 +48,18 @@ content: third_party_settings: { } weight: 3 region: content + field_link_two: + type: link_separate + label: hidden + settings: + trim_length: null + url_only: false + url_plain: false + rel: '0' + target: '0' + third_party_settings: { } + weight: 4 + region: content field_media: type: entity_reference_entity_view label: hidden diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.reference_card.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.reference_card.default.yml new file mode 100644 index 0000000000..7a980a30db --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.block_content.reference_card.default.yml @@ -0,0 +1,33 @@ +uuid: f1801eac-2806-40a2-a703-17aa24811c7e +langcode: en +status: true +dependencies: + config: + - block_content.type.reference_card + - field.field.block_content.reference_card.field_content_ref + - field.field.block_content.reference_card.field_style_variation + module: + - options +id: block_content.reference_card.default +targetEntityType: block_content +bundle: reference_card +mode: default +content: + field_content_ref: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: single + link: false + third_party_settings: { } + weight: 0 + region: content + field_style_variation: + type: list_key + label: hidden + settings: { } + third_party_settings: { } + weight: 5 + region: content +hidden: + search_api_excerpt: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.default.yml index 4925b6e122..48104b320d 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.media.background_video.field_media_video_file + - field.field.media.background_video.field_tags - media.type.background_video module: - file @@ -21,6 +22,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.media_library.yml index f6d4a577c4..3effc53130 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.background_video.media_library.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.media_library - field.field.media.background_video.field_media_video_file + - field.field.media.background_video.field_tags - image.style.media_library - media.type.background_video module: @@ -28,6 +29,7 @@ content: hidden: created: true field_media_video_file: true + field_tags: true name: true search_api_excerpt: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml index 23854a8fb8..c315825434 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.media.document.field_media_file + - field.field.media.document.field_tags - media.type.document module: - file @@ -21,6 +22,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml index 2222b1a180..296612bea6 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.document.media_library.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.media_library - field.field.media.document.field_media_file + - field.field.media.document.field_tags - image.style.media_library - media.type.document module: @@ -28,6 +29,7 @@ content: hidden: created: true field_media_file: true + field_tags: true name: true search_api_excerpt: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.background_image_16_9_focus_header.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.background_image_16_9_focus_header.yml index d39aebabce..ce1ee568a8 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.background_image_16_9_focus_header.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.background_image_16_9_focus_header.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.background_image_16_9_focus_header - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.background_image_focus_header module: @@ -32,6 +33,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_16_5.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_16_5.yml index 8434aa28a7..272407eeee 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_16_5.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_16_5.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.banner_16_5 - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.banner_16_5_ module: @@ -27,6 +28,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_profile.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_profile.yml index 7373f67129..3caa3a360e 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_profile.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.banner_profile.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.banner_profile - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.banner_profile module: @@ -32,6 +33,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_list_3_2.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_list_3_2.yml index edc31b8363..1fbbc3dca2 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_list_3_2.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_list_3_2.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.card_list_3_2 - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.card_list_3_2 module: @@ -27,6 +28,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_secondary_3_2.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_secondary_3_2.yml index 114fc2a39c..76b346bef4 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_secondary_3_2.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.card_secondary_3_2.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.card_secondary_3_2 - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.card_secondary_3_2 module: @@ -27,6 +28,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.content_spotlight_portrait_2_3.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.content_spotlight_portrait_2_3.yml index 74feca3385..10aa0d7945 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.content_spotlight_portrait_2_3.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.content_spotlight_portrait_2_3.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.content_spotlight_portrait_2_3 - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.content_spotlight_portrait module: @@ -32,6 +33,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.default.yml index 5d03aa4277..2068c110a3 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.default.yml @@ -4,21 +4,21 @@ status: true dependencies: config: - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - - responsive_image.styles.image_max_width module: - - responsive_image + - image id: media.image.default targetEntityType: media bundle: image mode: default content: field_media_image: - type: responsive_image + type: image label: hidden settings: - responsive_image_style: image_max_width image_link: '' + image_style: '' image_loading: attribute: eager third_party_settings: { } @@ -26,6 +26,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_content_width.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_content_width.yml index 54f41dd98f..8e1f877fb4 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_content_width.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_content_width.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.image_content_width - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.image_content_width module: @@ -27,6 +28,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_float.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_float.yml index 11a3c10541..745f8a50d2 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_float.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.image_float.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.image_float - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.image_float module: @@ -27,6 +28,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.media_library.yml new file mode 100644 index 0000000000..e7e671a05c --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.media_library.yml @@ -0,0 +1,38 @@ +uuid: 557918b8-f456-48cc-8230-670ba974bad1 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.media.media_library + - field.field.media.image.field_media_image + - image.style.media_library + - media.type.image + module: + - image + - layout_builder +third_party_settings: + layout_builder: + enabled: false + allow_custom: false +id: media.image.media_library +targetEntityType: media +bundle: image +mode: media_library +content: + field_media_image: + type: image + label: hidden + settings: + image_link: '' + image_style: media_library + image_loading: + attribute: lazy + third_party_settings: { } + weight: 0 + region: content +hidden: + created: true + name: true + search_api_excerpt: true + thumbnail: true + uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.profile_directory_card_1_1_.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.profile_directory_card_1_1_.yml index 37518b88c3..da52c2eb1d 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.profile_directory_card_1_1_.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.profile_directory_card_1_1_.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.profile_directory_card_1_1_ - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.profile_1_1_ module: @@ -32,6 +33,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.text_with_image_feature_equal.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.text_with_image_feature_equal.yml index b67ad9261c..32da7c634a 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.text_with_image_feature_equal.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.text_with_image_feature_equal.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.text_with_image_feature_equal - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image - responsive_image.styles.text_with_image_feature_equal module: @@ -27,6 +28,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.token.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.token.yml index 5ea693436e..4ab21b1a5f 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.token.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.image.token.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.token - field.field.media.image.field_media_image + - field.field.media.image.field_tags - media.type.image module: - image @@ -28,6 +29,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.default.yml index 75216a932e..a59a61ca3f 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.media.video.field_media_oembed_video + - field.field.media.video.field_tags - media.type.video module: - media @@ -25,6 +26,7 @@ content: region: content hidden: created: true + field_tags: true name: true search_api_excerpt: true thumbnail: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.media_library.yml index d3e1c22e40..30eb56d83b 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.media.video.media_library.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.media.media_library - field.field.media.video.field_media_oembed_video + - field.field.media.video.field_tags - image.style.media_library - media.type.video module: @@ -28,6 +29,7 @@ content: hidden: created: true field_media_oembed_video: true + field_tags: true name: true search_api_excerpt: true uid: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.default.yml index fbbf9aeabc..7c4eb1bf85 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.default.yml @@ -47,6 +47,16 @@ third_party_settings: context_mapping: { } weight: 0 additional: { } + 32bd9f3d-fc23-42f9-bbba-090da4bbfed8: + uuid: 32bd9f3d-fc23-42f9-bbba-090da4bbfed8 + region: content + configuration: + id: 'extra_field_block:node:event:content_moderation_control' + label_display: '0' + context_mapping: + entity: layout_builder.entity + weight: 1 + additional: { } third_party_settings: layout_builder_lock: lock: @@ -85,6 +95,7 @@ third_party_settings: - System - Webform - 'YaleSites Core' + - 'YaleSites Layouts' - 'YaleSites alert' - core entity_view_mode_restriction_by_region: @@ -94,6 +105,11 @@ targetEntityType: node bundle: event mode: default content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_category: type: entity_reference_label label: above @@ -158,3 +174,4 @@ hidden: layout_builder__layout: true links: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.single.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.single.yml new file mode 100644 index 0000000000..2189962564 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.event.single.yml @@ -0,0 +1,157 @@ +uuid: 8d81c664-14b3-4bf1-b817-7a34f4fdce76 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.single + - field.field.node.event.field_category + - field.field.node.event.field_event_cta + - field.field.node.event.field_event_date + - field.field.node.event.field_event_format + - field.field.node.event.field_event_type + - field.field.node.event.field_external_source + - field.field.node.event.field_login_required + - field.field.node.event.field_metatags + - field.field.node.event.field_tags + - field.field.node.event.field_teaser_media + - field.field.node.event.field_teaser_text + - field.field.node.event.field_teaser_title + - field.field.node.event.layout_builder__layout + - node.type.event + module: + - layout_builder + - layout_builder_restrictions + - link + - options + - smart_date + - text + - user +third_party_settings: + layout_builder: + enabled: false + allow_custom: false + layout_builder_restrictions: + allowed_block_categories: { } + entity_view_mode_restriction: + allowed_layouts: { } + denylisted_blocks: { } + allowlisted_blocks: { } + restricted_categories: + - 'Chaos Tools' + - 'Content fields' + - Forms + - Help + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites alert' + - core + entity_view_mode_restriction_by_region: + allowed_layouts: { } +id: node.event.single +targetEntityType: node +bundle: event +mode: single +content: + field_category: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 2 + region: content + field_event_cta: + type: link_separate + label: hidden + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 0 + region: content + field_event_date: + type: smartdate_default + label: hidden + settings: + timezone_override: '' + format_type: medium + format: default + force_chronological: false + add_classes: false + time_wrapper: true + localize: false + parts: + - start + - end + duration: + separator: ' | ' + unit: '' + decimals: 2 + suffix: h + third_party_settings: { } + weight: 1 + region: content + field_event_format: + type: list_default + label: hidden + settings: { } + third_party_settings: { } + weight: 8 + region: content + field_event_type: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 3 + region: content + field_external_source: + type: link_separate + label: hidden + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 5 + region: content + field_teaser_media: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: card_secondary_3_2 + link: false + third_party_settings: { } + weight: 4 + region: content + field_teaser_text: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 6 + region: content + field_teaser_title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 7 + region: content +hidden: + field_login_required: true + field_metatags: true + field_tags: true + layout_builder__layout: true + links: true + search_api_excerpt: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml index 8d50de5b39..4590186bed 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.page.default.yml @@ -29,10 +29,21 @@ third_party_settings: layout_settings: label: 'Banner Section' context_mapping: { } - components: { } + components: + f33cc6c5-c2a8-4326-8f27-2efb5f94f449: + uuid: f33cc6c5-c2a8-4326-8f27-2efb5f94f449 + region: content + configuration: + id: 'extra_field_block:node:page:content_moderation_control' + label_display: '0' + context_mapping: + entity: layout_builder.entity + weight: 0 + additional: { } third_party_settings: layout_builder_lock: lock: + 2: 2 5: 5 6: 6 7: 7 @@ -104,6 +115,7 @@ third_party_settings: - divider - image - pull_quote + - reference_card - tabs - text - video @@ -113,6 +125,7 @@ third_party_settings: - 'inline_block:divider' - 'inline_block:image' - 'inline_block:pull_quote' + - 'inline_block:reference_card' - 'inline_block:tabs' - 'inline_block:text' - 'inline_block:video' @@ -123,7 +136,7 @@ third_party_settings: - 'inline_block:text' restricted_categories: ys_layout_two_column: - content: + sidebar: - 'Chaos Tools' - 'Content fields' - Devel @@ -137,10 +150,9 @@ third_party_settings: - 'YaleSites Layouts' - 'YaleSites alert' - core - sidebar: + content: - 'Chaos Tools' - 'Content fields' - - Devel - Forms - Help - 'Lists (Views)' @@ -203,6 +215,11 @@ targetEntityType: node bundle: page mode: default content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_external_source: type: link label: above @@ -225,3 +242,4 @@ hidden: layout_builder__layout: true links: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml index 534019d336..75196cfa0d 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml @@ -44,6 +44,16 @@ third_party_settings: context_mapping: { } weight: 0 additional: { } + 26d18503-b171-4f60-80fb-647292da2a47: + uuid: 26d18503-b171-4f60-80fb-647292da2a47 + region: content + configuration: + id: 'extra_field_block:node:post:content_moderation_control' + label_display: '0' + context_mapping: + entity: layout_builder.entity + weight: 1 + additional: { } third_party_settings: layout_builder_lock: lock: @@ -82,6 +92,7 @@ third_party_settings: - System - Webform - 'YaleSites Core' + - 'YaleSites Layouts' - 'YaleSites alert' - core entity_view_mode_restriction_by_region: @@ -91,6 +102,11 @@ targetEntityType: node bundle: post mode: default content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_author: type: string label: hidden @@ -130,3 +146,4 @@ hidden: layout_builder__layout: true links: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml new file mode 100644 index 0000000000..4cf47cc63a --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml @@ -0,0 +1,108 @@ +uuid: 5d8989f3-cc8e-4cc4-af1e-960f752b086c +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.single + - field.field.node.post.field_author + - field.field.node.post.field_category + - field.field.node.post.field_external_source + - field.field.node.post.field_login_required + - field.field.node.post.field_metatags + - field.field.node.post.field_publish_date + - field.field.node.post.field_tags + - field.field.node.post.field_teaser_media + - field.field.node.post.field_teaser_text + - field.field.node.post.field_teaser_title + - field.field.node.post.layout_builder__layout + - node.type.post + module: + - datetime + - layout_builder + - layout_builder_restrictions + - link + - text + - user +third_party_settings: + layout_builder: + enabled: false + allow_custom: false + layout_builder_restrictions: + allowed_block_categories: { } + entity_view_mode_restriction: + allowed_layouts: { } + denylisted_blocks: { } + allowlisted_blocks: { } + restricted_categories: + - 'Chaos Tools' + - 'Content fields' + - Forms + - Help + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites alert' + - core + entity_view_mode_restriction_by_region: + allowed_layouts: { } +id: node.post.single +targetEntityType: node +bundle: post +mode: single +content: + field_external_source: + type: link + label: hidden + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 2 + region: content + field_publish_date: + type: datetime_default + label: hidden + settings: + timezone_override: '' + format_type: medium + third_party_settings: { } + weight: 4 + region: content + field_teaser_media: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: card_secondary_3_2 + link: false + third_party_settings: { } + weight: 1 + region: content + field_teaser_text: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content + field_teaser_title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 3 + region: content +hidden: + field_author: true + field_category: true + field_login_required: true + field_metatags: true + field_tags: true + layout_builder__layout: true + links: true + search_api_excerpt: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.default.yml index 763d007fcc..023649a159 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.default.yml @@ -53,6 +53,16 @@ third_party_settings: context_mapping: { } weight: 0 additional: { } + 0bf43bc3-4ba8-428b-8ec9-893e3e4fd7a3: + uuid: 0bf43bc3-4ba8-428b-8ec9-893e3e4fd7a3 + region: content + configuration: + id: 'extra_field_block:node:profile:content_moderation_control' + label_display: '0' + context_mapping: + entity: layout_builder.entity + weight: 1 + additional: { } third_party_settings: layout_builder_lock: lock: @@ -89,7 +99,6 @@ third_party_settings: - 'Content fields' - 'Custom block types' - 'Custom blocks' - - Devel - Forms - Help - 'Inline blocks' @@ -114,7 +123,6 @@ third_party_settings: - 'Chaos Tools' - 'Content fields' - 'Custom blocks' - - Devel - Forms - Help - 'Lists (Views)' @@ -141,6 +149,7 @@ third_party_settings: - divider - image - pull_quote + - reference_card - tabs - text - video @@ -150,6 +159,7 @@ third_party_settings: - 'inline_block:divider' - 'inline_block:image' - 'inline_block:pull_quote' + - 'inline_block:reference_card' - 'inline_block:tabs' - 'inline_block:text' - 'inline_block:video' @@ -165,7 +175,7 @@ third_party_settings: denylisted_blocks: { } restricted_categories: ys_layout_two_column: - content: + sidebar: - 'Chaos Tools' - 'Content fields' - 'Custom blocks' @@ -179,11 +189,10 @@ third_party_settings: - 'YaleSites Core' - 'YaleSites alert' - core - sidebar: + content: - 'Chaos Tools' - 'Content fields' - 'Custom blocks' - - Devel - Forms - Help - 'Lists (Views)' @@ -213,6 +222,11 @@ targetEntityType: node bundle: profile mode: default content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_address: type: text_default label: above @@ -367,3 +381,4 @@ content: hidden: layout_builder__layout: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.single.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.single.yml new file mode 100644 index 0000000000..518a1cb1fa --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.profile.single.yml @@ -0,0 +1,294 @@ +uuid: 0c81ecb6-9e8e-4c24-b03c-860838015f77 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.single + - field.field.node.profile.field_address + - field.field.node.profile.field_affiliation + - field.field.node.profile.field_department + - field.field.node.profile.field_email + - field.field.node.profile.field_external_source + - field.field.node.profile.field_first_name + - field.field.node.profile.field_honorific_prefix + - field.field.node.profile.field_last_name + - field.field.node.profile.field_login_required + - field.field.node.profile.field_media + - field.field.node.profile.field_metatags + - field.field.node.profile.field_position + - field.field.node.profile.field_subtitle + - field.field.node.profile.field_tags + - field.field.node.profile.field_teaser_media + - field.field.node.profile.field_teaser_text + - field.field.node.profile.field_teaser_title + - field.field.node.profile.field_telephone + - field.field.node.profile.layout_builder__layout + - node.type.profile + module: + - layout_builder + - layout_builder_restrictions + - link + - text + - user +third_party_settings: + layout_builder: + enabled: false + allow_custom: false + layout_builder_restrictions: + allowed_block_categories: + - 'Chaos Tools' + - 'Content fields' + - 'Custom block types' + - 'Custom blocks' + - Forms + - Help + - 'Inline blocks' + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites Layouts' + - 'YaleSites alert' + - core + entity_view_mode_restriction: + allowed_layouts: + - layout_onecol + - ys_layout_two_column + denylisted_blocks: { } + allowlisted_blocks: + 'YaleSites Layouts': + - profile_contact_block + - profile_meta_block + restricted_categories: + - 'Chaos Tools' + - 'Content fields' + - 'Custom blocks' + - Forms + - Help + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites alert' + - core + entity_view_mode_restriction_by_region: + allowed_layouts: + - layout_onecol + - ys_layout_two_column + allowlisted_blocks: + layout_onecol: + all_regions: + 'YaleSites Layouts': + - profile_contact_block + ys_layout_two_column: + content: + 'Custom block types': + - accordion + - button_link + - divider + - image + - pull_quote + - reference_card + - tabs + - text + - video + 'Inline blocks': + - 'inline_block:accordion' + - 'inline_block:button_link' + - 'inline_block:divider' + - 'inline_block:image' + - 'inline_block:pull_quote' + - 'inline_block:reference_card' + - 'inline_block:tabs' + - 'inline_block:text' + - 'inline_block:video' + 'YaleSites Layouts': + - profile_contact_block + sidebar: + 'Custom block types': + - text + 'Inline blocks': + - 'inline_block:text' + 'YaleSites Layouts': + - profile_contact_block + denylisted_blocks: { } + restricted_categories: + ys_layout_two_column: + sidebar: + - 'Chaos Tools' + - 'Content fields' + - 'Custom blocks' + - Devel + - Forms + - Help + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites alert' + - core + content: + - 'Chaos Tools' + - 'Content fields' + - 'Custom blocks' + - Forms + - Help + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites alert' + - core + layout_onecol: + all_regions: + - 'Chaos Tools' + - 'Content fields' + - 'Custom blocks' + - Devel + - Forms + - Help + - 'Lists (Views)' + - Menus + - System + - Webform + - 'YaleSites Core' + - 'YaleSites alert' + - core +id: node.profile.single +targetEntityType: node +bundle: profile +mode: single +content: + field_address: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 11 + region: content + field_affiliation: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 8 + region: content + field_department: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 9 + region: content + field_email: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 6 + region: content + field_external_source: + type: link_separate + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 0 + region: content + field_first_name: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 12 + region: content + field_honorific_prefix: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 14 + region: content + field_last_name: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 13 + region: content + field_media: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: default + link: false + third_party_settings: { } + weight: 10 + region: content + field_position: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 4 + region: content + field_subtitle: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 5 + region: content + field_teaser_media: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: profile_directory_card_1_1_ + link: false + third_party_settings: { } + weight: 1 + region: content + field_teaser_text: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 2 + region: content + field_teaser_title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 3 + region: content + field_telephone: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 7 + region: content +hidden: + field_login_required: true + field_metatags: true + field_tags: true + layout_builder__layout: true + links: true + search_api_excerpt: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_mode.node.single.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_mode.node.single.yml new file mode 100644 index 0000000000..7c0c8428e8 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_mode.node.single.yml @@ -0,0 +1,10 @@ +uuid: f8968737-9763-4464-8c47-a522c24113cb +langcode: en +status: true +dependencies: + module: + - node +id: node.single +label: Single +targetEntityType: node +cache: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml b/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml index 18cc0395d2..6ba1e32aa8 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.extension.yml @@ -25,6 +25,7 @@ module: config_filter: 0 config_ignore: 0 config_split: 0 + content_moderation: 0 contextual: 0 crop: 0 ctools: 0 @@ -46,6 +47,7 @@ module: filter: 0 focal_point: 0 gin_lb: 0 + gin_moderation_sidebar: 0 gin_toolbar: 0 google_analytics: 0 help: 0 @@ -87,6 +89,7 @@ module: migrate: 0 migrate_plus: 0 migrate_tools: 0 + moderation_sidebar: 0 multiple_fields_remove_button: 0 multivalue_form_element: 0 mysql: 0 @@ -100,7 +103,6 @@ module: path: 0 path_alias: 0 phpass: 0 - publishcontent: 0 quick_node_clone: 0 recaptcha: 0 recaptcha_v3: 0 @@ -131,6 +133,8 @@ module: views_ui: 0 webform: 0 webform_ui: 0 + workflow_buttons: 0 + workflows: 0 yale_cas: 0 ys_alert: 0 ys_captcha: 0 diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.cta_banner.field_link_two.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.cta_banner.field_link_two.yml new file mode 100644 index 0000000000..dc790df93d --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.cta_banner.field_link_two.yml @@ -0,0 +1,23 @@ +uuid: f7133d77-0df7-4324-95a4-9bbf20ddd47c +langcode: en +status: true +dependencies: + config: + - block_content.type.cta_banner + - field.storage.block_content.field_link_two + module: + - link +id: block_content.cta_banner.field_link_two +field_name: field_link_two +entity_type: block_content +bundle: cta_banner +label: 'Call-to-action Two' +description: 'For more information about linking content, view our resource Linking Content on YaleSites.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 2 + link_type: 17 +field_type: link diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.grand_hero.field_link_two.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.grand_hero.field_link_two.yml new file mode 100644 index 0000000000..83f2aebfce --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.grand_hero.field_link_two.yml @@ -0,0 +1,23 @@ +uuid: ecbfe710-7aa8-40cc-b4cc-e89127ff77c4 +langcode: en +status: true +dependencies: + config: + - block_content.type.grand_hero + - field.storage.block_content.field_link_two + module: + - link +id: block_content.grand_hero.field_link_two +field_name: field_link_two +entity_type: block_content +bundle: grand_hero +label: 'Link Two' +description: 'For more information about linking content, view our resource Linking Content on YaleSites.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 2 + link_type: 17 +field_type: link diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.reference_card.field_content_ref.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.reference_card.field_content_ref.yml new file mode 100644 index 0000000000..719dbeae52 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.reference_card.field_content_ref.yml @@ -0,0 +1,33 @@ +uuid: 521a7371-b9a2-4eb6-9a27-7416629fed19 +langcode: en +status: true +dependencies: + config: + - block_content.type.reference_card + - field.storage.block_content.field_content_ref + - node.type.event + - node.type.post + - node.type.profile +id: block_content.reference_card.field_content_ref +field_name: field_content_ref +entity_type: block_content +bundle: reference_card +label: 'Reference source' +description: 'Type the name of the content you want to refer to in the Reference Source. As you type, an autocomplete feature will suggest matching content from your site.' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + event: event + post: post + profile: profile + sort: + field: _none + direction: ASC + auto_create: false + auto_create_bundle: event +field_type: entity_reference diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.reference_card.field_style_variation.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.reference_card.field_style_variation.yml new file mode 100644 index 0000000000..8b771208bf --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.reference_card.field_style_variation.yml @@ -0,0 +1,21 @@ +uuid: dde9fb9b-584c-46cc-94b1-63fe181938ac +langcode: en +status: true +dependencies: + config: + - block_content.type.reference_card + - field.storage.block_content.field_style_variation + module: + - options +id: block_content.reference_card.field_style_variation +field_name: field_style_variation +entity_type: block_content +bundle: reference_card +label: Style +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: ys_themes_default_value_function +settings: { } +field_type: list_string diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_media_video_file.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_media_video_file.yml index ebdb7bc0a2..a436997e65 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_media_video_file.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_media_video_file.yml @@ -23,5 +23,5 @@ settings: file_directory: '[date:custom:Y]-[date:custom:m]' file_extensions: mp4 max_filesize: '12 MB' - description_field: false + description_field: true field_type: file diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_tags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_tags.yml new file mode 100644 index 0000000000..c2d1ab9a53 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.background_video.field_tags.yml @@ -0,0 +1,29 @@ +uuid: 1522f244-c51b-42fd-8857-a5d2dfa0567a +langcode: en +status: true +dependencies: + config: + - field.storage.media.field_tags + - media.type.background_video + - taxonomy.vocabulary.tags +id: media.background_video.field_tags +field_name: field_tags +entity_type: media +bundle: background_video +label: Tags +description: "Tags will autocomplete as you type. Choose from pre-created options only. To add a new tag, go to 'Content->Manage Taxonomy->Tags'." +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + tags: tags + sort: + field: name + direction: asc + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_media_file.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_media_file.yml index 719f3a861e..513cec6f91 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_media_file.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_media_file.yml @@ -23,5 +23,5 @@ settings: file_directory: '[date:custom:Y]-[date:custom:m]' file_extensions: 'txt rtf doc docx pdf xls xlsx' max_filesize: '' - description_field: false + description_field: true field_type: file diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_tags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_tags.yml new file mode 100644 index 0000000000..09cafabbff --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.document.field_tags.yml @@ -0,0 +1,29 @@ +uuid: aceca5c8-37e3-42e6-af54-1338b74ebf59 +langcode: en +status: true +dependencies: + config: + - field.storage.media.field_tags + - media.type.document + - taxonomy.vocabulary.tags +id: media.document.field_tags +field_name: field_tags +entity_type: media +bundle: document +label: Tags +description: "Tags will autocomplete as you type. Choose from pre-created options only. To add a new tag, go to 'Content->Manage Taxonomy->Tags'." +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + tags: tags + sort: + field: name + direction: asc + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.image.field_tags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.image.field_tags.yml new file mode 100644 index 0000000000..8b8783b644 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.image.field_tags.yml @@ -0,0 +1,29 @@ +uuid: 653d7c31-9709-4302-b28d-44fe0b50c398 +langcode: en +status: true +dependencies: + config: + - field.storage.media.field_tags + - media.type.image + - taxonomy.vocabulary.tags +id: media.image.field_tags +field_name: field_tags +entity_type: media +bundle: image +label: Tags +description: "Tags will autocomplete as you type. Choose from pre-created options only. To add a new tag, go to 'Content->Manage Taxonomy->Tags'." +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + tags: tags + sort: + field: name + direction: asc + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.media.video.field_tags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.video.field_tags.yml new file mode 100644 index 0000000000..f95e0cbe58 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.media.video.field_tags.yml @@ -0,0 +1,29 @@ +uuid: d8147934-920f-4dca-a689-71ffcc78fda5 +langcode: en +status: true +dependencies: + config: + - field.storage.media.field_tags + - media.type.video + - taxonomy.vocabulary.tags +id: media.video.field_tags +field_name: field_tags +entity_type: media +bundle: video +label: Tags +description: "Tags will autocomplete as you type. Choose from pre-created options only. To add a new tag, go to 'Content->Manage Taxonomy->Tags'." +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + tags: tags + sort: + field: name + direction: asc + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.node.profile.field_media.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.node.profile.field_media.yml index 741c1d0443..0eaf7aea99 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/field.field.node.profile.field_media.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.node.profile.field_media.yml @@ -10,7 +10,7 @@ id: node.profile.field_media field_name: field_media entity_type: node bundle: profile -label: Media +label: 'Profile Image' description: 'Profile photos can be used in various places on the site. The most common usage is in lists, directories, and card views which use a 1:1 ratio image that is best around 600x600 px. The profile detail page uses a 3:2 ratio image that is best around 1080x720 px. For best results, upload a photo that is larger and the site will automatically scale and crop using the crop settings specified during upload.' required: false translatable: false diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.storage.block_content.field_content_ref.yml b/web/profiles/custom/yalesites_profile/config/sync/field.storage.block_content.field_content_ref.yml new file mode 100644 index 0000000000..8a5e33b0dd --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.storage.block_content.field_content_ref.yml @@ -0,0 +1,20 @@ +uuid: 65f564e2-fbf5-4518-aaaf-ad626e0fb845 +langcode: en +status: true +dependencies: + module: + - block_content + - node +id: block_content.field_content_ref +field_name: field_content_ref +entity_type: block_content +type: entity_reference +settings: + target_type: node +module: core +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/field.storage.block_content.field_link_two.yml b/web/profiles/custom/yalesites_profile/config/sync/field.storage.block_content.field_link_two.yml new file mode 100644 index 0000000000..7a175fa162 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.storage.block_content.field_link_two.yml @@ -0,0 +1,19 @@ +uuid: 044745d7-cd7e-4e28-bca0-5f40edd3328d +langcode: en +status: true +dependencies: + module: + - block_content + - link +id: block_content.field_link_two +field_name: field_link_two +entity_type: block_content +type: link +settings: { } +module: link +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/field.storage.media.field_tags.yml b/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_tags.yml new file mode 100644 index 0000000000..c012e2633e --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.storage.media.field_tags.yml @@ -0,0 +1,20 @@ +uuid: acb1c3c0-1619-488d-b000-37f25bd59ad6 +langcode: en +status: true +dependencies: + module: + - media + - taxonomy +id: media.field_tags +field_name: field_tags +entity_type: media +type: entity_reference +settings: + target_type: taxonomy_term +module: core +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/gin_moderation_sidebar.settings.yml b/web/profiles/custom/yalesites_profile/config/sync/gin_moderation_sidebar.settings.yml new file mode 100644 index 0000000000..1d647623ff --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/gin_moderation_sidebar.settings.yml @@ -0,0 +1,3 @@ +_core: + default_config_hash: WDYqgqKUihADHeoMPrSeMRMNSoqLrK4z-YJjqtVZxEg +tab_style: default diff --git a/web/profiles/custom/yalesites_profile/config/sync/image.style.media_library.yml b/web/profiles/custom/yalesites_profile/config/sync/image.style.media_library.yml index 8dc223114e..883b15f04b 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/image.style.media_library.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/image.style.media_library.yml @@ -2,19 +2,21 @@ uuid: 4e8a075a-fed8-4da4-bd16-78971503820a langcode: en status: true dependencies: + module: + - focal_point enforced: module: - media_library _core: default_config_hash: 7qJqToD1OQLAyeswpmg7M0LRxQlw1URQkJDWUJCnmR8 name: media_library -label: 'Media Library thumbnail (220×220)' +label: 'Media Library thumbnail (350×350)' effects: - 75b076a8-1234-4b42-85db-bf377c4d8d5f: - uuid: 75b076a8-1234-4b42-85db-bf377c4d8d5f - id: image_scale - weight: 0 + 66acf8b4-c9cf-449b-ab95-a1c52c917e6f: + uuid: 66acf8b4-c9cf-449b-ab95-a1c52c917e6f + id: focal_point_scale_and_crop + weight: 2 data: - width: 220 - height: 220 - upscale: false + width: 350 + height: 350 + crop_type: focal_point diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.button_link.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.button_link.yml index e50ec8fcca..f05715da92 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.button_link.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.button_link.yml @@ -8,4 +8,4 @@ category: basic label: 'Button Link' image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/button-link.svg image_alt: '' -weight: -7 +weight: -8 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.callout.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.callout.yml index 9831929c49..eedd0dd965 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.callout.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.callout.yml @@ -8,4 +8,4 @@ category: basic label: Callout image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/callout.svg image_alt: '' -weight: -6 +weight: -7 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight.yml index 7bdbaa6b6f..41d15c2360 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight.yml @@ -8,4 +8,4 @@ category: basic label: 'Spotlight - Landscape' image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/spotlight-landscape.svg image_alt: '' -weight: -4 +weight: -5 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight_portrait_.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight_portrait_.yml index 5b16ce67f4..b501effa09 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight_portrait_.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.content_spotlight_portrait_.yml @@ -8,4 +8,4 @@ category: basic label: 'Spotlight - Portrait' image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/spotlight-portrait.svg image_alt: '' -weight: -3 +weight: -4 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.divider.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.divider.yml index d5d78849bb..66eb17ea52 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.divider.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.divider.yml @@ -8,4 +8,4 @@ category: basic label: Divider image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/divider.svg image_alt: '' -weight: -5 +weight: -6 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.image.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.image.yml index 3b58135f88..3338b877cb 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.image.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.image.yml @@ -8,4 +8,4 @@ category: basic label: Image image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/image.svg image_alt: '' -weight: -11 +weight: -12 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.profile_contact_info.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.profile_contact_info.yml index 1887b32cb6..b17a3c56f5 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.profile_contact_info.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.profile_contact_info.yml @@ -8,4 +8,4 @@ category: basic label: 'Profile Contact Info' image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/profile-contact-info.svg image_alt: '' -weight: -13 +weight: -14 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quick_links.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quick_links.yml index 64fd210cbb..dbcf5811b4 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quick_links.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quick_links.yml @@ -8,4 +8,4 @@ category: basic label: 'Quick Links' image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/quick-links.svg image_alt: '' -weight: -2 +weight: -3 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quote.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quote.yml index 0c2bd9e2b7..0942e4be7b 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quote.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.quote.yml @@ -8,4 +8,4 @@ category: basic label: Quote image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/pull-quote.svg image_alt: '' -weight: -8 +weight: -9 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.reference_card.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.reference_card.yml new file mode 100644 index 0000000000..6b41a0c445 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.reference_card.yml @@ -0,0 +1,11 @@ +uuid: 64ea0f5f-94f0-40da-8385-895bc0255393 +langcode: en +status: true +dependencies: { } +id: reference_card +block_id: 'inline_block:reference_card' +category: basic +label: 'Reference card' +image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/reference-card.svg +image_alt: '' +weight: -2 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.text.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.text.yml index 0e9c7867fc..e49c60f4eb 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.text.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.text.yml @@ -8,4 +8,4 @@ category: basic label: Text image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/text.svg image_alt: '' -weight: -12 +weight: -13 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.video.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.video.yml index 38e982af85..266dd7e7b3 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.video.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.video.yml @@ -8,4 +8,4 @@ category: basic label: Video image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/video.svg image_alt: '' -weight: -10 +weight: -11 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.wrapped_image.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.wrapped_image.yml index cb4291b249..ebefdb0955 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.wrapped_image.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.layout_builder_browser_block.wrapped_image.yml @@ -8,4 +8,4 @@ category: basic label: 'Wrapped Image' image_path: /profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/wrapped-image.svg image_alt: '' -weight: -9 +weight: -10 diff --git a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.settings.yml b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.settings.yml index e438ebf846..cdecfcee64 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.settings.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/layout_builder_browser.settings.yml @@ -22,6 +22,7 @@ auto_added_reusable_block_content_bundles: post_list: post_list pull_quote: pull_quote quick_links: quick_links + reference_card: reference_card tabs: tabs text: text video: video diff --git a/web/profiles/custom/yalesites_profile/config/sync/media.type.video.yml b/web/profiles/custom/yalesites_profile/config/sync/media.type.video.yml index 9cf80f4f41..76faffb6e2 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/media.type.video.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/media.type.video.yml @@ -1,7 +1,35 @@ uuid: e79c60cd-c637-42e8-be34-b6a22669531c langcode: en status: true -dependencies: { } +dependencies: + module: + - crop + - entity_redirect +third_party_settings: + crop: + image_field: null + entity_redirect: + redirect: + anonymous: + active: false + destination: default + url: '' + external: '' + add: + active: false + destination: default + url: '' + external: '' + edit: + active: false + destination: default + url: '' + external: '' + delete: + active: false + destination: default + url: '' + external: '' id: video label: Video description: 'Used for embedding a video from YouTube or Vimeo.' @@ -14,4 +42,5 @@ source_configuration: providers: - YouTube - Vimeo -field_map: { } +field_map: + title: name diff --git a/web/profiles/custom/yalesites_profile/config/sync/publishcontent.settings.yml b/web/profiles/custom/yalesites_profile/config/sync/publishcontent.settings.yml deleted file mode 100644 index ad4310ba32..0000000000 --- a/web/profiles/custom/yalesites_profile/config/sync/publishcontent.settings.yml +++ /dev/null @@ -1,8 +0,0 @@ -_core: - default_config_hash: yrqqG88pLjv5VOMc9Mp665VJUyK4lMCZwg8376pI0SQ -ui_localtask: true -ui_checkbox: true -create_revision: true -create_log_entry: true -publish_text_value: Publish -unpublish_text_value: Unpublish diff --git a/web/profiles/custom/yalesites_profile/config/sync/system.action.user_add_role_action.contributor.yml b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_add_role_action.contributor.yml new file mode 100644 index 0000000000..c9d6b524c3 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_add_role_action.contributor.yml @@ -0,0 +1,14 @@ +uuid: d6396930-ab7a-47f3-a13b-6968bcb95a0d +langcode: en +status: true +dependencies: + config: + - user.role.contributor + module: + - user +id: user_add_role_action.contributor +label: 'Add the Contributor role to the selected user(s)' +type: user +plugin: user_add_role_action +configuration: + rid: contributor diff --git a/web/profiles/custom/yalesites_profile/config/sync/system.action.user_add_role_action.editor.yml b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_add_role_action.editor.yml new file mode 100644 index 0000000000..d1b19aed71 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_add_role_action.editor.yml @@ -0,0 +1,14 @@ +uuid: 104f5955-4f82-4370-8ec1-d75ff2a1d85d +langcode: en +status: true +dependencies: + config: + - user.role.editor + module: + - user +id: user_add_role_action.editor +label: 'Add the Editor role to the selected user(s)' +type: user +plugin: user_add_role_action +configuration: + rid: editor diff --git a/web/profiles/custom/yalesites_profile/config/sync/system.action.user_remove_role_action.contributor.yml b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_remove_role_action.contributor.yml new file mode 100644 index 0000000000..8271e20440 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_remove_role_action.contributor.yml @@ -0,0 +1,14 @@ +uuid: 19b4d234-052d-4eb3-8345-4bae1dacfc34 +langcode: en +status: true +dependencies: + config: + - user.role.contributor + module: + - user +id: user_remove_role_action.contributor +label: 'Remove the Contributor role from the selected user(s)' +type: user +plugin: user_remove_role_action +configuration: + rid: contributor diff --git a/web/profiles/custom/yalesites_profile/config/sync/system.action.user_remove_role_action.editor.yml b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_remove_role_action.editor.yml new file mode 100644 index 0000000000..bf847f526e --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/system.action.user_remove_role_action.editor.yml @@ -0,0 +1,14 @@ +uuid: 1b1336df-d60d-47f5-afe3-ea180d6af4d6 +langcode: en +status: true +dependencies: + config: + - user.role.editor + module: + - user +id: user_remove_role_action.editor +label: 'Remove the Editor role from the selected user(s)' +type: user +plugin: user_remove_role_action +configuration: + rid: editor diff --git a/web/profiles/custom/yalesites_profile/config/sync/user.role.anonymous.yml b/web/profiles/custom/yalesites_profile/config/sync/user.role.anonymous.yml index cc7e67f367..bb0ac97d72 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/user.role.anonymous.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/user.role.anonymous.yml @@ -10,7 +10,7 @@ _core: default_config_hash: j5zLMOdJBqC0bMvSdth5UebkprJB8g_2FXHqhfpJzow id: anonymous label: 'Anonymous user' -weight: 0 +weight: -10 is_admin: false permissions: - 'access content' diff --git a/web/profiles/custom/yalesites_profile/config/sync/user.role.authenticated.yml b/web/profiles/custom/yalesites_profile/config/sync/user.role.authenticated.yml index eecd94e325..65aee9254f 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/user.role.authenticated.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/user.role.authenticated.yml @@ -17,7 +17,7 @@ _core: default_config_hash: dJ0L2DNSj5q6XVZAGsuVDpJTh5UeYkIPwKrUOOpr8YI id: authenticated label: 'Authenticated user' -weight: 1 +weight: -9 is_admin: false permissions: - 'access content' diff --git a/web/profiles/custom/yalesites_profile/config/sync/user.role.contributor.yml b/web/profiles/custom/yalesites_profile/config/sync/user.role.contributor.yml new file mode 100644 index 0000000000..276c83f0ff --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/user.role.contributor.yml @@ -0,0 +1,324 @@ +uuid: 252b4e88-53e7-414b-be3e-a68b19e2fe46 +langcode: en +status: true +dependencies: + config: + - block_content.type.accordion + - block_content.type.button_link + - block_content.type.callout + - block_content.type.content_spotlight + - block_content.type.content_spotlight_portrait + - block_content.type.cta_banner + - block_content.type.custom_cards + - block_content.type.directory + - block_content.type.divider + - block_content.type.embed + - block_content.type.event_list + - block_content.type.gallery + - block_content.type.grand_hero + - block_content.type.image + - block_content.type.media_grid + - block_content.type.post_list + - block_content.type.pull_quote + - block_content.type.quick_links + - block_content.type.tabs + - block_content.type.text + - block_content.type.video + - block_content.type.view + - block_content.type.webform + - block_content.type.wrapped_image + - core.entity_view_display.node.event.default + - core.entity_view_display.node.page.default + - core.entity_view_display.node.post.default + - core.entity_view_display.node.profile.default + - media.type.background_video + - media.type.document + - media.type.embed + - media.type.image + - media.type.video + - node.type.event + - node.type.page + - node.type.post + - node.type.profile + - taxonomy.vocabulary.affiliation + - taxonomy.vocabulary.event_category + - taxonomy.vocabulary.post_category + - taxonomy.vocabulary.tags + - workflows.workflow.editorial + module: + - block_content + - content_moderation + - contextual + - editoria11y + - file + - layout_builder + - media + - menu_admin_per_menu + - moderation_sidebar + - node + - override_node_options + - paragraphs + - path + - quick_node_clone + - redirect + - system + - taxonomy + - toolbar + - webform + - ys_alert + - ys_core +id: contributor +label: Contributor +weight: -8 +is_admin: null +permissions: + - 'access block library' + - 'access content overview' + - 'access contextual links' + - 'access files overview' + - 'access media overview' + - 'access site in maintenance mode' + - 'access taxonomy overview' + - 'access toolbar' + - 'access user profiles' + - 'access webform overview' + - 'administer main menu items' + - 'administer redirects' + - 'administer users' + - 'administer utility-navigation menu items' + - 'clone event content' + - 'clone page content' + - 'clone post content' + - 'clone profile content' + - 'configure editable event node layout overrides' + - 'configure editable page node layout overrides' + - 'configure editable post node layout overrides' + - 'configure editable profile node layout overrides' + - 'create accordion block content' + - 'create and edit custom blocks' + - 'create background_video media' + - 'create button_link block content' + - 'create callout block content' + - 'create content_spotlight block content' + - 'create content_spotlight_portrait block content' + - 'create cta_banner block content' + - 'create custom_cards block content' + - 'create directory block content' + - 'create divider block content' + - 'create document media' + - 'create embed block content' + - 'create embed media' + - 'create event content' + - 'create event_list block content' + - 'create gallery block content' + - 'create grand_hero block content' + - 'create image block content' + - 'create image media' + - 'create media' + - 'create media_grid block content' + - 'create page content' + - 'create post content' + - 'create post_list block content' + - 'create profile content' + - 'create pull_quote block content' + - 'create quick_links block content' + - 'create reusable blocks' + - 'create tabs block content' + - 'create terms in affiliation' + - 'create terms in event_category' + - 'create terms in post_category' + - 'create terms in tags' + - 'create text block content' + - 'create url aliases' + - 'create video block content' + - 'create video media' + - 'create view block content' + - 'create webform block content' + - 'create wrapped_image block content' + - 'delete any accordion block content' + - 'delete any accordion block content revisions' + - 'delete any background_video media' + - 'delete any button_link block content' + - 'delete any button_link block content revisions' + - 'delete any callout block content' + - 'delete any callout block content revisions' + - 'delete any content_spotlight block content' + - 'delete any content_spotlight block content revisions' + - 'delete any content_spotlight_portrait block content' + - 'delete any content_spotlight_portrait block content revisions' + - 'delete any cta_banner block content' + - 'delete any cta_banner block content revisions' + - 'delete any custom_cards block content' + - 'delete any custom_cards block content revisions' + - 'delete any directory block content' + - 'delete any directory block content revisions' + - 'delete any divider block content' + - 'delete any divider block content revisions' + - 'delete any embed block content' + - 'delete any embed block content revisions' + - 'delete any event content' + - 'delete any event_list block content' + - 'delete any event_list block content revisions' + - 'delete any gallery block content' + - 'delete any gallery block content revisions' + - 'delete any grand_hero block content' + - 'delete any grand_hero block content revisions' + - 'delete any image block content' + - 'delete any image block content revisions' + - 'delete any media_grid block content' + - 'delete any media_grid block content revisions' + - 'delete any page content' + - 'delete any post content' + - 'delete any post_list block content' + - 'delete any post_list block content revisions' + - 'delete any profile content' + - 'delete any pull_quote block content' + - 'delete any pull_quote block content revisions' + - 'delete any quick_links block content' + - 'delete any quick_links block content revisions' + - 'delete any tabs block content' + - 'delete any tabs block content revisions' + - 'delete any text block content' + - 'delete any text block content revisions' + - 'delete any video block content' + - 'delete any video block content revisions' + - 'delete any view block content' + - 'delete any view block content revisions' + - 'delete any webform block content' + - 'delete any webform block content revisions' + - 'delete any webform submission' + - 'delete any wrapped_image block content' + - 'delete any wrapped_image block content revisions' + - 'delete own event content' + - 'delete own page content' + - 'delete own post content' + - 'delete own profile content' + - 'delete terms in affiliation' + - 'delete terms in event_category' + - 'delete terms in post_category' + - 'delete terms in tags' + - 'edit any accordion block content' + - 'edit any background_video media' + - 'edit any button_link block content' + - 'edit any callout block content' + - 'edit any content_spotlight block content' + - 'edit any content_spotlight_portrait block content' + - 'edit any cta_banner block content' + - 'edit any custom_cards block content' + - 'edit any directory block content' + - 'edit any divider block content' + - 'edit any document media' + - 'edit any embed block content' + - 'edit any embed media' + - 'edit any event content' + - 'edit any event_list block content' + - 'edit any gallery block content' + - 'edit any grand_hero block content' + - 'edit any image block content' + - 'edit any image media' + - 'edit any media_grid block content' + - 'edit any page content' + - 'edit any post content' + - 'edit any post_list block content' + - 'edit any profile content' + - 'edit any pull_quote block content' + - 'edit any quick_links block content' + - 'edit any tabs block content' + - 'edit any text block content' + - 'edit any video block content' + - 'edit any video media' + - 'edit any view block content' + - 'edit any webform block content' + - 'edit any webform submission' + - 'edit any wrapped_image block content' + - 'edit own background_video media' + - 'edit own document media' + - 'edit own embed media' + - 'edit own event content' + - 'edit own image media' + - 'edit own page content' + - 'edit own post content' + - 'edit own profile content' + - 'edit own video media' + - 'edit own webform submission' + - 'edit terms in affiliation' + - 'edit terms in event_category' + - 'edit terms in post_category' + - 'edit terms in tags' + - 'mark as hidden in editoria11y' + - 'override all sticky option' + - 'override post authored on option' + - 'revert all revisions' + - 'revert any accordion block content revisions' + - 'revert any button_link block content revisions' + - 'revert any callout block content revisions' + - 'revert any content_spotlight block content revisions' + - 'revert any content_spotlight_portrait block content revisions' + - 'revert any cta_banner block content revisions' + - 'revert any custom_cards block content revisions' + - 'revert any directory block content revisions' + - 'revert any divider block content revisions' + - 'revert any embed block content revisions' + - 'revert any event_list block content revisions' + - 'revert any gallery block content revisions' + - 'revert any grand_hero block content revisions' + - 'revert any image block content revisions' + - 'revert any media_grid block content revisions' + - 'revert any post_list block content revisions' + - 'revert any pull_quote block content revisions' + - 'revert any quick_links block content revisions' + - 'revert any tabs block content revisions' + - 'revert any text block content revisions' + - 'revert any video block content revisions' + - 'revert any view block content revisions' + - 'revert any webform block content revisions' + - 'revert any wrapped_image block content revisions' + - 'revert event revisions' + - 'revert page revisions' + - 'revert post revisions' + - 'revert profile revisions' + - 'update any media' + - 'update media' + - 'use editorial transition create_new_draft' + - 'use moderation sidebar' + - 'view all media revisions' + - 'view all revisions' + - 'view any accordion block content history' + - 'view any button_link block content history' + - 'view any callout block content history' + - 'view any content_spotlight block content history' + - 'view any content_spotlight_portrait block content history' + - 'view any cta_banner block content history' + - 'view any custom_cards block content history' + - 'view any directory block content history' + - 'view any divider block content history' + - 'view any embed block content history' + - 'view any event_list block content history' + - 'view any gallery block content history' + - 'view any grand_hero block content history' + - 'view any image block content history' + - 'view any media_grid block content history' + - 'view any post_list block content history' + - 'view any pull_quote block content history' + - 'view any quick_links block content history' + - 'view any tabs block content history' + - 'view any text block content history' + - 'view any unpublished content' + - 'view any video block content history' + - 'view any view block content history' + - 'view any webform block content history' + - 'view any webform submission' + - 'view any wrapped_image block content history' + - 'view editoria11y checker' + - 'view event revisions' + - 'view latest version' + - 'view own unpublished content' + - 'view own unpublished media' + - 'view own webform submission' + - 'view page revisions' + - 'view post revisions' + - 'view profile revisions' + - 'view the administration theme' + - 'view unpublished paragraphs' + - 'yalesites manage alerts' + - 'yalesites manage settings' diff --git a/web/profiles/custom/yalesites_profile/config/sync/user.role.editor.yml b/web/profiles/custom/yalesites_profile/config/sync/user.role.editor.yml new file mode 100644 index 0000000000..bc369f0b70 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/user.role.editor.yml @@ -0,0 +1,339 @@ +uuid: db0091cb-c8f3-4d75-b6ce-1739ea6fec00 +langcode: en +status: true +dependencies: + config: + - block_content.type.accordion + - block_content.type.button_link + - block_content.type.callout + - block_content.type.content_spotlight + - block_content.type.content_spotlight_portrait + - block_content.type.cta_banner + - block_content.type.custom_cards + - block_content.type.directory + - block_content.type.divider + - block_content.type.embed + - block_content.type.event_list + - block_content.type.gallery + - block_content.type.grand_hero + - block_content.type.image + - block_content.type.media_grid + - block_content.type.post_list + - block_content.type.pull_quote + - block_content.type.quick_links + - block_content.type.tabs + - block_content.type.text + - block_content.type.video + - block_content.type.view + - block_content.type.webform + - block_content.type.wrapped_image + - core.entity_view_display.node.event.default + - core.entity_view_display.node.page.default + - core.entity_view_display.node.post.default + - core.entity_view_display.node.profile.default + - media.type.background_video + - media.type.document + - media.type.embed + - media.type.image + - media.type.video + - node.type.event + - node.type.page + - node.type.post + - node.type.profile + - taxonomy.vocabulary.affiliation + - taxonomy.vocabulary.event_category + - taxonomy.vocabulary.post_category + - taxonomy.vocabulary.tags + - workflows.workflow.editorial + module: + - block_content + - content_moderation + - contextual + - editoria11y + - file + - layout_builder + - media + - menu_admin_per_menu + - moderation_sidebar + - node + - override_node_options + - paragraphs + - path + - quick_node_clone + - redirect + - system + - taxonomy + - toolbar + - webform + - ys_alert + - ys_core +id: editor +label: Editor +weight: -7 +is_admin: null +permissions: + - 'access block library' + - 'access content overview' + - 'access contextual links' + - 'access files overview' + - 'access media overview' + - 'access site in maintenance mode' + - 'access taxonomy overview' + - 'access toolbar' + - 'access user profiles' + - 'access webform overview' + - 'administer main menu items' + - 'administer redirects' + - 'administer users' + - 'administer utility-navigation menu items' + - 'clone event content' + - 'clone page content' + - 'clone post content' + - 'clone profile content' + - 'configure editable event node layout overrides' + - 'configure editable page node layout overrides' + - 'configure editable post node layout overrides' + - 'configure editable profile node layout overrides' + - 'create accordion block content' + - 'create and edit custom blocks' + - 'create background_video media' + - 'create button_link block content' + - 'create callout block content' + - 'create content_spotlight block content' + - 'create content_spotlight_portrait block content' + - 'create cta_banner block content' + - 'create custom_cards block content' + - 'create directory block content' + - 'create divider block content' + - 'create document media' + - 'create embed block content' + - 'create embed media' + - 'create event content' + - 'create event_list block content' + - 'create gallery block content' + - 'create grand_hero block content' + - 'create image block content' + - 'create image media' + - 'create media' + - 'create media_grid block content' + - 'create page content' + - 'create post content' + - 'create post_list block content' + - 'create profile content' + - 'create pull_quote block content' + - 'create quick_links block content' + - 'create reusable blocks' + - 'create tabs block content' + - 'create terms in affiliation' + - 'create terms in event_category' + - 'create terms in post_category' + - 'create terms in tags' + - 'create text block content' + - 'create url aliases' + - 'create video block content' + - 'create video media' + - 'create view block content' + - 'create webform block content' + - 'create wrapped_image block content' + - 'delete any accordion block content' + - 'delete any accordion block content revisions' + - 'delete any background_video media' + - 'delete any button_link block content' + - 'delete any button_link block content revisions' + - 'delete any callout block content' + - 'delete any callout block content revisions' + - 'delete any content_spotlight block content' + - 'delete any content_spotlight block content revisions' + - 'delete any content_spotlight_portrait block content' + - 'delete any content_spotlight_portrait block content revisions' + - 'delete any cta_banner block content' + - 'delete any cta_banner block content revisions' + - 'delete any custom_cards block content' + - 'delete any custom_cards block content revisions' + - 'delete any directory block content' + - 'delete any directory block content revisions' + - 'delete any divider block content' + - 'delete any divider block content revisions' + - 'delete any document media' + - 'delete any embed block content' + - 'delete any embed block content revisions' + - 'delete any embed media' + - 'delete any event content' + - 'delete any event_list block content' + - 'delete any event_list block content revisions' + - 'delete any gallery block content' + - 'delete any gallery block content revisions' + - 'delete any grand_hero block content' + - 'delete any grand_hero block content revisions' + - 'delete any image block content' + - 'delete any image block content revisions' + - 'delete any image media' + - 'delete any media' + - 'delete any media_grid block content' + - 'delete any media_grid block content revisions' + - 'delete any page content' + - 'delete any post content' + - 'delete any post_list block content' + - 'delete any post_list block content revisions' + - 'delete any profile content' + - 'delete any pull_quote block content' + - 'delete any pull_quote block content revisions' + - 'delete any quick_links block content' + - 'delete any quick_links block content revisions' + - 'delete any tabs block content' + - 'delete any tabs block content revisions' + - 'delete any text block content' + - 'delete any text block content revisions' + - 'delete any video block content' + - 'delete any video block content revisions' + - 'delete any video media' + - 'delete any view block content' + - 'delete any view block content revisions' + - 'delete any webform block content' + - 'delete any webform block content revisions' + - 'delete any webform submission' + - 'delete any wrapped_image block content' + - 'delete any wrapped_image block content revisions' + - 'delete media' + - 'delete own background_video media' + - 'delete own document media' + - 'delete own embed media' + - 'delete own event content' + - 'delete own image media' + - 'delete own page content' + - 'delete own post content' + - 'delete own profile content' + - 'delete own video media' + - 'delete terms in affiliation' + - 'delete terms in event_category' + - 'delete terms in post_category' + - 'delete terms in tags' + - 'edit any accordion block content' + - 'edit any background_video media' + - 'edit any button_link block content' + - 'edit any callout block content' + - 'edit any content_spotlight block content' + - 'edit any content_spotlight_portrait block content' + - 'edit any cta_banner block content' + - 'edit any custom_cards block content' + - 'edit any directory block content' + - 'edit any divider block content' + - 'edit any document media' + - 'edit any embed block content' + - 'edit any embed media' + - 'edit any event content' + - 'edit any event_list block content' + - 'edit any gallery block content' + - 'edit any grand_hero block content' + - 'edit any image block content' + - 'edit any image media' + - 'edit any media_grid block content' + - 'edit any page content' + - 'edit any post content' + - 'edit any post_list block content' + - 'edit any profile content' + - 'edit any pull_quote block content' + - 'edit any quick_links block content' + - 'edit any tabs block content' + - 'edit any text block content' + - 'edit any video block content' + - 'edit any video media' + - 'edit any view block content' + - 'edit any webform block content' + - 'edit any webform submission' + - 'edit any wrapped_image block content' + - 'edit own background_video media' + - 'edit own document media' + - 'edit own embed media' + - 'edit own event content' + - 'edit own image media' + - 'edit own page content' + - 'edit own post content' + - 'edit own profile content' + - 'edit own video media' + - 'edit own webform submission' + - 'edit terms in affiliation' + - 'edit terms in event_category' + - 'edit terms in post_category' + - 'edit terms in tags' + - 'mark as hidden in editoria11y' + - 'override all sticky option' + - 'override post authored on option' + - 'revert all revisions' + - 'revert any accordion block content revisions' + - 'revert any button_link block content revisions' + - 'revert any callout block content revisions' + - 'revert any content_spotlight block content revisions' + - 'revert any content_spotlight_portrait block content revisions' + - 'revert any cta_banner block content revisions' + - 'revert any custom_cards block content revisions' + - 'revert any directory block content revisions' + - 'revert any divider block content revisions' + - 'revert any embed block content revisions' + - 'revert any event_list block content revisions' + - 'revert any gallery block content revisions' + - 'revert any grand_hero block content revisions' + - 'revert any image block content revisions' + - 'revert any media_grid block content revisions' + - 'revert any post_list block content revisions' + - 'revert any pull_quote block content revisions' + - 'revert any quick_links block content revisions' + - 'revert any tabs block content revisions' + - 'revert any text block content revisions' + - 'revert any video block content revisions' + - 'revert any view block content revisions' + - 'revert any webform block content revisions' + - 'revert any wrapped_image block content revisions' + - 'revert event revisions' + - 'revert page revisions' + - 'revert post revisions' + - 'revert profile revisions' + - 'update any media' + - 'update media' + - 'use editorial transition archive' + - 'use editorial transition archived_draft' + - 'use editorial transition archived_published' + - 'use editorial transition create_new_draft' + - 'use editorial transition publish' + - 'use moderation sidebar' + - 'view all media revisions' + - 'view all revisions' + - 'view any accordion block content history' + - 'view any button_link block content history' + - 'view any callout block content history' + - 'view any content_spotlight block content history' + - 'view any content_spotlight_portrait block content history' + - 'view any cta_banner block content history' + - 'view any custom_cards block content history' + - 'view any directory block content history' + - 'view any divider block content history' + - 'view any embed block content history' + - 'view any event_list block content history' + - 'view any gallery block content history' + - 'view any grand_hero block content history' + - 'view any image block content history' + - 'view any media_grid block content history' + - 'view any post_list block content history' + - 'view any pull_quote block content history' + - 'view any quick_links block content history' + - 'view any tabs block content history' + - 'view any text block content history' + - 'view any unpublished content' + - 'view any video block content history' + - 'view any view block content history' + - 'view any webform block content history' + - 'view any webform submission' + - 'view any wrapped_image block content history' + - 'view editoria11y checker' + - 'view event revisions' + - 'view latest version' + - 'view own unpublished content' + - 'view own unpublished media' + - 'view own webform submission' + - 'view page revisions' + - 'view post revisions' + - 'view profile revisions' + - 'view the administration theme' + - 'view unpublished paragraphs' + - 'yalesites manage alerts' + - 'yalesites manage settings' diff --git a/web/profiles/custom/yalesites_profile/config/sync/user.role.platform_admin.yml b/web/profiles/custom/yalesites_profile/config/sync/user.role.platform_admin.yml index 6a51268a4b..b865410efd 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/user.role.platform_admin.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/user.role.platform_admin.yml @@ -44,20 +44,22 @@ dependencies: - taxonomy.vocabulary.event_category - taxonomy.vocabulary.post_category - taxonomy.vocabulary.tags + - workflows.workflow.editorial module: - block - block_content + - content_moderation - contextual - editoria11y - file - layout_builder - media - menu_admin_per_menu + - moderation_sidebar - node - override_node_options - paragraphs - path - - publishcontent - quick_node_clone - redirect - role_delegation @@ -69,7 +71,7 @@ dependencies: - ys_core id: platform_admin label: 'Platform administrator' -weight: 2 +weight: -5 is_admin: null permissions: - 'access block library' @@ -109,6 +111,7 @@ permissions: - 'create content_spotlight_portrait block content' - 'create cta_banner block content' - 'create custom_cards block content' + - 'create directory block content' - 'create divider block content' - 'create document media' - 'create embed block content' @@ -155,6 +158,8 @@ permissions: - 'delete any cta_banner block content revisions' - 'delete any custom_cards block content' - 'delete any custom_cards block content revisions' + - 'delete any directory block content' + - 'delete any directory block content revisions' - 'delete any divider block content' - 'delete any divider block content revisions' - 'delete any document media' @@ -266,8 +271,6 @@ permissions: - 'override all promote to front page option' - 'override all published option' - 'override all sticky option' - - 'publish any content' - - 'publish editable content' - 'revert all revisions' - 'revert any accordion block content revisions' - 'revert any button_link block content revisions' @@ -297,10 +300,14 @@ permissions: - 'revert page revisions' - 'revert post revisions' - 'revert profile revisions' - - 'unpublish any content' - - 'unpublish editable content' - 'update any media' - 'update media' + - 'use editorial transition archive' + - 'use editorial transition archived_draft' + - 'use editorial transition archived_published' + - 'use editorial transition create_new_draft' + - 'use editorial transition publish' + - 'use moderation sidebar' - 'view all media revisions' - 'view all revisions' - 'view any accordion block content history' @@ -323,6 +330,7 @@ permissions: - 'view any quick_links block content history' - 'view any tabs block content history' - 'view any text block content history' + - 'view any unpublished content' - 'view any video block content history' - 'view any view block content history' - 'view any webform block content history' @@ -330,6 +338,7 @@ permissions: - 'view any wrapped_image block content history' - 'view editoria11y checker' - 'view event revisions' + - 'view latest version' - 'view own unpublished content' - 'view own unpublished media' - 'view own webform submission' diff --git a/web/profiles/custom/yalesites_profile/config/sync/user.role.site_admin.yml b/web/profiles/custom/yalesites_profile/config/sync/user.role.site_admin.yml index c49380026a..239d470848 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/user.role.site_admin.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/user.role.site_admin.yml @@ -44,19 +44,21 @@ dependencies: - taxonomy.vocabulary.event_category - taxonomy.vocabulary.post_category - taxonomy.vocabulary.tags + - workflows.workflow.editorial module: - block_content + - content_moderation - contextual - editoria11y - file - layout_builder - media - menu_admin_per_menu + - moderation_sidebar - node - override_node_options - paragraphs - path - - publishcontent - quick_node_clone - redirect - role_delegation @@ -68,7 +70,7 @@ dependencies: - ys_core id: site_admin label: 'Site administrator' -weight: 3 +weight: -6 is_admin: null permissions: - 'access block library' @@ -85,6 +87,8 @@ permissions: - 'administer redirects' - 'administer users' - 'administer utility-navigation menu items' + - 'assign contributor role' + - 'assign editor role' - 'assign site_admin role' - 'clone event content' - 'clone page content' @@ -103,6 +107,7 @@ permissions: - 'create content_spotlight_portrait block content' - 'create cta_banner block content' - 'create custom_cards block content' + - 'create directory block content' - 'create divider block content' - 'create document media' - 'create embed block content' @@ -149,6 +154,8 @@ permissions: - 'delete any cta_banner block content revisions' - 'delete any custom_cards block content' - 'delete any custom_cards block content revisions' + - 'delete any directory block content' + - 'delete any directory block content revisions' - 'delete any divider block content' - 'delete any divider block content revisions' - 'delete any document media' @@ -257,8 +264,6 @@ permissions: - 'mark as hidden in editoria11y' - 'override all sticky option' - 'override post authored on option' - - 'publish any content' - - 'publish editable content' - 'revert all revisions' - 'revert any accordion block content revisions' - 'revert any button_link block content revisions' @@ -288,10 +293,14 @@ permissions: - 'revert page revisions' - 'revert post revisions' - 'revert profile revisions' - - 'unpublish any content' - - 'unpublish editable content' - 'update any media' - 'update media' + - 'use editorial transition archive' + - 'use editorial transition archived_draft' + - 'use editorial transition archived_published' + - 'use editorial transition create_new_draft' + - 'use editorial transition publish' + - 'use moderation sidebar' - 'view all media revisions' - 'view all revisions' - 'view any accordion block content history' @@ -314,6 +323,7 @@ permissions: - 'view any quick_links block content history' - 'view any tabs block content history' - 'view any text block content history' + - 'view any unpublished content' - 'view any video block content history' - 'view any view block content history' - 'view any webform block content history' @@ -321,6 +331,7 @@ permissions: - 'view any wrapped_image block content history' - 'view editoria11y checker' - 'view event revisions' + - 'view latest version' - 'view own unpublished content' - 'view own unpublished media' - 'view own webform submission' diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml index 1d64abd51e..80d96209ec 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.content.yml @@ -81,8 +81,6 @@ display: include_exclude: include selected_actions: - node_delete_action - - node_publish_action - - node_unpublish_action - pathauto_update_alias_node title: id: title diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.directory.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.directory.yml index 7392d44f95..7270881004 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.directory.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.directory.yml @@ -143,9 +143,10 @@ display: filter_rewrite_values: '' collapsible: false is_secondary: false - options_show_only_used: 1 - options_show_only_used_filtered: 0 - options_hide_when_empty: 0 + options_show_only_used: true + options_show_only_used_filtered: false + options_hide_when_empty: true + options_show_items_count: 0 access: type: perm options: diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.event_list.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.event_list.yml index 89c191524c..80b5916f02 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.event_list.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.event_list.yml @@ -128,9 +128,10 @@ display: filter_rewrite_values: '' collapsible: false is_secondary: false - options_show_only_used: 1 - options_show_only_used_filtered: 0 - options_hide_when_empty: 0 + options_show_only_used: true + options_show_only_used_filtered: false + options_hide_when_empty: true + options_show_items_count: 0 access: type: perm options: diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml index 3df1788022..230b04f903 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_events.yml @@ -87,8 +87,6 @@ display: include_exclude: include selected_actions: - node_delete_action - - node_publish_action - - node_unpublish_action - pathauto_update_alias_node title: id: title diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml index 4371b8b030..f6526261e8 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_pages.yml @@ -81,8 +81,6 @@ display: include_exclude: include selected_actions: - node_delete_action - - node_publish_action - - node_unpublish_action - pathauto_update_alias_node title_1: id: title_1 diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml index 7b68c2edd1..f746f2bc7a 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_posts.yml @@ -84,8 +84,6 @@ display: include_exclude: include selected_actions: - node_delete_action - - node_publish_action - - node_unpublish_action - pathauto_update_alias_node title: id: title diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml index 83a922c675..11897fcd83 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.manage_profiles.yml @@ -85,8 +85,10 @@ display: empty_zero: false hide_alter_empty: true action_title: Action - include_exclude: exclude - selected_actions: { } + include_exclude: include + selected_actions: + - node_delete_action + - pathauto_update_alias_node title: id: title table: node_field_data diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.media.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.media.yml index c3a4f5338b..08cc8e1a5a 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.media.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.media.yml @@ -2,8 +2,12 @@ uuid: ae64141c-0d51-4f15-967c-e3d7bbedaef8 langcode: en status: true dependencies: + config: + - field.storage.media.field_tags + - taxonomy.vocabulary.tags module: - media + - taxonomy - user _core: default_config_hash: mF_CA96Q4unIl78LRoLKR5YPUDGdxn0wbSqyUbvrQjc @@ -321,6 +325,69 @@ display: multi_type: separator separator: ', ' field_api_classes: false + field_tags: + id: field_tags + table: media__field_tags + field: field_tags + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: Tags + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false changed: id: changed table: media_field_data @@ -689,6 +756,59 @@ display: default_group: All default_group_multiple: { } group_items: { } + field_tags_target_id: + id: field_tags_target_id + table: media__field_tags + field: field_tags_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: and + value: { } + group: 1 + exposed: true + expose: + operator_id: field_tags_target_id_op + label: Tags + description: '' + use_operator: false + operator: field_tags_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: field_tags_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + contributor: '0' + editor: '0' + site_admin: '0' + platform_admin: '0' + reduce: false + is_grouped: false + group_info: + label: 'Tags (field_tags)' + description: null + identifier: field_tags_target_id + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: + 1: { } + 2: { } + 3: { } + reduce_duplicates: false + vid: tags + type: textfield + hierarchy: false + limit: true + error_message: true langcode: id: langcode table: media_field_data @@ -732,6 +852,10 @@ display: default_group: All default_group_multiple: { } group_items: { } + filter_groups: + operator: AND + groups: + 1: AND style: type: table options: @@ -818,7 +942,8 @@ display: - url.query_args - user - user.permissions - tags: { } + tags: + - 'config:field.storage.media.field_tags' media_page_list: id: media_page_list display_title: Media @@ -846,4 +971,5 @@ display: - url.query_args - user - user.permissions - tags: { } + tags: + - 'config:field.storage.media.field_tags' diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.moderated_content.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.moderated_content.yml new file mode 100644 index 0000000000..7a2cc95297 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.moderated_content.yml @@ -0,0 +1,842 @@ +uuid: 402fdd54-7e82-47b8-9078-63b29f53eb3a +langcode: en +status: true +dependencies: + module: + - node + - user + enforced: + module: + - content_moderation +_core: + default_config_hash: 7olvKOaJNf15B-Bj4eD1wJyaz4BR7CNA9cEjWBssa2Y +id: moderated_content +label: 'Moderated content' +module: views +description: 'Find and moderate content.' +tag: '' +base_table: node_field_revision +base_field: vid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Moderated content' + fields: + title: + id: title + table: node_field_revision + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: Title + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + type: + id: type + table: node_field_data + field: type + relationship: nid + group_type: group + admin_label: '' + entity_type: node + entity_field: type + plugin_id: field + label: 'Content type' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + name: + id: name + table: users_field_data + field: name + relationship: uid + group_type: group + admin_label: '' + entity_type: user + entity_field: name + plugin_id: field + label: Author + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: user_name + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + moderation_state: + id: moderation_state + table: node_field_revision + field: moderation_state + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: field + label: 'Moderation state' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: content_moderation_state + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + changed: + id: changed + table: node_field_revision + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: changed + plugin_id: field + label: Updated + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + operations: + id: operations + table: node_revision + field: operations + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: entity_operations + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + pager: + type: full + options: + offset: 0 + items_per_page: 50 + total_pages: null + id: 0 + tags: + next: 'Next ›' + previous: '‹ Previous' + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + exposed_form: + type: basic + options: + submit_button: Filter + reset_button: true + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + access: + type: perm + options: + perm: 'view any unpublished content' + cache: + type: tag + options: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: 'No moderated content available. Only pending versions of content, such as drafts, are listed here.' + tokenize: false + sorts: { } + arguments: { } + filters: + latest_translation_affected_revision: + id: latest_translation_affected_revision + table: node_revision + field: latest_translation_affected_revision + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: latest_translation_affected_revision + operator: '=' + value: '' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + title: + id: title + table: node_field_revision + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: title_op + label: Title + description: '' + use_operator: false + operator: title_op + operator_limit_selection: false + operator_list: { } + identifier: title + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + type: + id: type + table: node_field_data + field: type + relationship: nid + group_type: group + admin_label: '' + entity_type: node + entity_field: type + plugin_id: bundle + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: 'Content type' + description: '' + use_operator: false + operator: type_op + operator_limit_selection: false + operator_list: { } + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + moderation_state: + id: moderation_state + table: node_field_revision + field: moderation_state + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: moderation_state_filter + operator: in + value: + editorial-draft: editorial-draft + editorial-archived: editorial-archived + group: 1 + exposed: true + expose: + operator_id: moderation_state_op + label: 'Moderation state' + description: '' + use_operator: false + operator: moderation_state_op + operator_limit_selection: false + operator_list: { } + identifier: moderation_state + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: true + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + langcode: + id: langcode + table: node_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: langcode + plugin_id: language + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: langcode_op + label: Language + description: '' + use_operator: false + operator: langcode_op + operator_limit_selection: false + operator_list: { } + identifier: langcode + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + moderation_state_1: + id: moderation_state_1 + table: node_field_revision + field: moderation_state + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: moderation_state_filter + operator: 'not in' + value: + editorial-published: editorial-published + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: + 1: AND + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + title: title + type: type + name: name + moderation_state: moderation_state + changed: changed + default: changed + info: + title: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + name: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + moderation_state: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: true + summary: '' + empty_table: true + caption: '' + description: '' + row: + type: fields + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: + nid: + id: nid + table: node_field_revision + field: nid + relationship: none + group_type: group + admin_label: 'Get the actual content from a content revision.' + entity_type: node + entity_field: nid + plugin_id: standard + required: false + uid: + id: uid + table: node_field_revision + field: uid + relationship: none + group_type: group + admin_label: User + entity_type: node + entity_field: uid + plugin_id: standard + required: false + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + moderated_content: + id: moderated_content + display_title: 'Moderated content' + display_plugin: page + position: 1 + display_options: + display_description: '' + display_extenders: { } + path: admin/content/moderated + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/web/profiles/custom/yalesites_profile/config/sync/views.view.post_list.yml b/web/profiles/custom/yalesites_profile/config/sync/views.view.post_list.yml index 36e9150166..a000f42a6b 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/views.view.post_list.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/views.view.post_list.yml @@ -128,9 +128,10 @@ display: filter_rewrite_values: '' collapsible: false is_secondary: false - options_show_only_used: 1 - options_show_only_used_filtered: 0 - options_hide_when_empty: 0 + options_show_only_used: true + options_show_only_used_filtered: false + options_hide_when_empty: true + options_show_items_count: 0 access: type: perm options: diff --git a/web/profiles/custom/yalesites_profile/config/sync/workflow_buttons.settings.yml b/web/profiles/custom/yalesites_profile/config/sync/workflow_buttons.settings.yml new file mode 100644 index 0000000000..45bda49244 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/workflow_buttons.settings.yml @@ -0,0 +1,4 @@ +_core: + default_config_hash: MNhJFHOSodAXLNq8PWQ57QuQ9cKrQjTTCLh0hcLiIY8 +display: + top_buttons: false diff --git a/web/profiles/custom/yalesites_profile/config/sync/workflows.workflow.editorial.yml b/web/profiles/custom/yalesites_profile/config/sync/workflows.workflow.editorial.yml new file mode 100644 index 0000000000..f4056bfa30 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/workflows.workflow.editorial.yml @@ -0,0 +1,71 @@ +uuid: 701bffbf-95af-4890-bebc-6314ebe60d1f +langcode: en +status: true +dependencies: + config: + - node.type.event + - node.type.page + - node.type.post + - node.type.profile + module: + - content_moderation +id: editorial +label: Editorial +type: content_moderation +type_settings: + states: + archived: + label: Archived + weight: 5 + published: false + default_revision: true + draft: + label: Draft + weight: -5 + published: false + default_revision: false + published: + label: Published + weight: 0 + published: true + default_revision: true + transitions: + archive: + label: Archive + from: + - published + to: archived + weight: 2 + archived_draft: + label: 'Restore to Draft' + from: + - archived + to: draft + weight: 3 + archived_published: + label: Restore + from: + - archived + to: published + weight: 4 + create_new_draft: + label: 'Create New Draft' + from: + - draft + - published + to: draft + weight: 0 + publish: + label: Publish + from: + - draft + - published + to: published + weight: 1 + entity_types: + node: + - event + - page + - post + - profile + default_moderation_state: draft diff --git a/web/profiles/custom/yalesites_profile/config/sync/ys_themes.component_overrides.yml b/web/profiles/custom/yalesites_profile/config/sync/ys_themes.component_overrides.yml index 185b8ff61e..e95002fdab 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/ys_themes.component_overrides.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/ys_themes.component_overrides.yml @@ -142,3 +142,9 @@ text: default: Default emphasized: Emphasized default: default +reference_card: + field_style_variation: + values: + featured: Featured + non-featured: Non-featured + default: featured diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Form/AlertSettings.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Form/AlertSettings.php index 2c2c654a10..bd6c499065 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Form/AlertSettings.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Form/AlertSettings.php @@ -65,7 +65,7 @@ public function __construct( CachedDiscoveryClearerInterface $plugin_cache_clearer, AlertManager $alert_manager, AliasManager $path_alias_manager, - ) { + ) { parent::__construct($config_factory); $this->cacheRender = $cacheRender; $this->pluginCacheClearer = $plugin_cache_clearer; diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Plugin/Block/AlertBlock.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Plugin/Block/AlertBlock.php index f44beb00d5..ee314751a5 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Plugin/Block/AlertBlock.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_alert/src/Plugin/Block/AlertBlock.php @@ -42,8 +42,8 @@ public function __construct( array $configuration, $plugin_id, $plugin_definition, - AlertManager $alert_manager - ) { + AlertManager $alert_manager, + ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->alertManager = $alert_manager; } @@ -55,8 +55,8 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition - ) { + $plugin_definition, + ) { return new static( $configuration, $plugin_id, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/config/install/ys_core.social_links.yml b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/config/install/ys_core.social_links.yml index 459d66a8ed..79b0015600 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/config/install/ys_core.social_links.yml +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/config/install/ys_core.social_links.yml @@ -1,6 +1,6 @@ facebook: '' instagram: '' -twitter: '' +x-twitter: '' youtube: '' weibo: '' linkedin: '' diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/reference-card.svg b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/reference-card.svg new file mode 100644 index 0000000000..febb446c6a --- /dev/null +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/reference-card.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/EventSubscriber/AlterModerationSidebarController.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/EventSubscriber/AlterModerationSidebarController.php new file mode 100644 index 0000000000..208bea932a --- /dev/null +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/EventSubscriber/AlterModerationSidebarController.php @@ -0,0 +1,44 @@ +getRequest(); + $route = $request->attributes->get('_route'); + + if ($route == 'moderation_sidebar.sidebar' || $route == 'moderation_sidebar.sidebar_latest') { + $build = $event->getControllerResult(); + if (is_array($build)) { + $build['actions']['primary']['edit']['#title'] = $this->t('Manage Settings'); + $build['actions']['secondary']['layout_builder_ui:layout_builder.overrides.node.view']['#title'] = $this->t('Edit Layout And Content'); + $event->setControllerResult($build); + } + } + } + + /** + * {@inheritdoc} + */ + public static function getSubscribedEvents() { + // Priority > 0 so that it runs before the controller output. + // is rendered by \Drupal\Core\EventSubscriber\MainContentViewSubscriber. + $events[KernelEvents::VIEW][] = ['onView', 50]; + return $events; + } + +} diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/FooterSettingsForm.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/FooterSettingsForm.php index 8e0027aadf..74c2da7ce8 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/FooterSettingsForm.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/FooterSettingsForm.php @@ -387,7 +387,7 @@ public function __construct( CacheBackendInterface $cache_render, SocialLinksManager $social_links_manager, AliasManager $path_alias_manager, - ) { + ) { parent::__construct($config_factory); $this->cacheRender = $cache_render; $this->socialLinks = $social_links_manager; diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/HeaderSettingsForm.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/HeaderSettingsForm.php index b49ff11525..8be0ad7784 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/HeaderSettingsForm.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/HeaderSettingsForm.php @@ -62,7 +62,7 @@ public function __construct( CacheBackendInterface $cache_render, AccountProxy $current_user_session, YaleSitesMediaManager $ys_media_manager, - ) { + ) { parent::__construct($config_factory); $this->cacheRender = $cache_render; $this->currentUserSession = $current_user_session; diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/SiteSettingsForm.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/SiteSettingsForm.php index 242eacab03..c8f9e109c2 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/SiteSettingsForm.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Form/SiteSettingsForm.php @@ -94,7 +94,7 @@ public function __construct( YaleSitesMediaManager $ys_media_manager, EntityTypeManagerInterface $entity_type_manager, AccountProxy $account_interface, - ) { + ) { parent::__construct($config_factory); $this->aliasManager = $alias_manager; $this->pathValidator = $path_validator; diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Plugin/Block/YaleSitesFooterBlock.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Plugin/Block/YaleSitesFooterBlock.php index a2c6750b7a..024e74dc78 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Plugin/Block/YaleSitesFooterBlock.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/Plugin/Block/YaleSitesFooterBlock.php @@ -61,7 +61,7 @@ public function __construct( ConfigFactoryInterface $config_factory, EntityTypeManager $entity_type_manager, Messenger $messenger, - ) { + ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->socialLinks = $social_links_manager; $this->footerSettings = $config_factory->getEditable('ys_core.footer_settings'); diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/SocialLinksManager.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/SocialLinksManager.php index a605723292..0032c01414 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/SocialLinksManager.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/SocialLinksManager.php @@ -17,7 +17,7 @@ class SocialLinksManager { const SITES = [ 'facebook' => 'Facebook', 'instagram' => 'Instagram', - 'twitter' => 'Twitter', + 'x-twitter' => 'X (formally Twitter)', 'youtube' => 'YouTube', 'weibo' => 'Weibo', 'linkedin' => 'LinkedIn', diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/YaleSitesMediaManager.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/YaleSitesMediaManager.php index cebf578079..1b5c3e039d 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/YaleSitesMediaManager.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/src/YaleSitesMediaManager.php @@ -55,8 +55,8 @@ class YaleSitesMediaManager extends ControllerBase implements ContainerInjection public function __construct( ConfigFactoryInterface $config_factory, EntityTypeManager $entity_type_manager, - FileUrlGenerator $file_url_generator - ) { + FileUrlGenerator $file_url_generator, + ) { $this->yaleSettings = $config_factory->get('ys_core.site'); $this->siteSettings = $config_factory->get('system.site'); $this->entityTypeManager = $entity_type_manager; diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.install b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.install index e9d54d3d0f..1b294ee575 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.install +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.install @@ -195,4 +195,5 @@ function ys_core_update_9007() { image_path_flush($image->getSource()); } + } diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.services.yml b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.services.yml index f78cd59fe4..87bee3f664 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.services.yml +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.services.yml @@ -21,3 +21,8 @@ services: arguments: ['@current_route_match'] tags: - { name: 'event_subscriber' } + ys_core.moderation_sidebar_controller_alter: + class: Drupal\ys_core\EventSubscriber\AlterModerationSidebarController + arguments: [] + tags: + - { name: event_subscriber } diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/README.md b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/README.md index 84f690f643..c5ab2867c8 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/README.md +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/README.md @@ -19,7 +19,7 @@ This module defines a @MediaSource plugin for adding embedded content to the med ### @EmbedSource Plugin and Manager Service -Plugins provide an object-oriented mechanism for organizing code in Drupal. The EmbedSource plugin created in this module helps to organize the storage, validatation, and rendering of embedded content. Plugins are created for each embed source, including Twitter, Instagram, Microsoft PowerBI, and Qualtrics. A 'Broken' source is added as a useful tool for ensuring code fails gracefully when encountering legacy/broken items in the future. A plugin manager allows developers to find and instantiate EmbedSource plugins. +Plugins provide an object-oriented mechanism for organizing code in Drupal. The EmbedSource plugin created in this module helps to organize the storage, validatation, and rendering of embedded content. Plugins are created for each embed source, including X, Instagram, Microsoft PowerBI, and Qualtrics. A 'Broken' source is added as a useful tool for ensuring code fails gracefully when encountering legacy/broken items in the future. A plugin manager allows developers to find and instantiate EmbedSource plugins. - [Code: Plugin Interface](./src/Plugin/EmbedSourceInterface.php) - [Code: Plugin Annotation](./src/Annotation/EmbedSource.php) diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/instagram.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/instagram.png index 1c5c31690b..8f34046592 100644 Binary files a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/instagram.png and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/instagram.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/localist.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/localist.png new file mode 100644 index 0000000000..23eb2c2f6f Binary files /dev/null and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/localist.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/powerbi.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/powerbi.png index e5084683a5..bdf64ff786 100644 Binary files a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/powerbi.png and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/powerbi.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/qualtrics.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/qualtrics.png index db1a0e9696..bc1a4f3ea1 100644 Binary files a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/qualtrics.png and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/qualtrics.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/soundcloud.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/soundcloud.png index fda3535e50..a208cf8030 100644 Binary files a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/soundcloud.png and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/soundcloud.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/twitter.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/twitter.png index 83db53ac57..6f6d6fc704 100644 Binary files a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/twitter.png and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/twitter.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/x-twitter.png b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/x-twitter.png new file mode 100644 index 0000000000..2c2d7e863f Binary files /dev/null and b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/images/icons/x-twitter.png differ diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Localist.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Localist.php new file mode 100644 index 0000000000..2f5046a90a --- /dev/null +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Localist.php @@ -0,0 +1,41 @@ +\d+)"\s+class="localist-widget"><\/div><\/script>/'; + + /** + * {@inheritdoc} + */ + protected static $template = '
'; + + /** + * {@inheritdoc} + */ + protected static $instructions = 'On the Localist "Build an Events Widget" page, fill out the fields to filter which events should be visible in the widget. At the bottom of the builder, click "Generate Embed Code", and copy the "Code" text in the text box.'; + + /** + * {@inheritdoc} + */ + protected static $example = '
'; + +} diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Twitter.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Twitter.php index 0744600ee2..e1bf4d9325 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Twitter.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSource/Twitter.php @@ -10,9 +10,9 @@ * * @EmbedSource( * id = "twitter", - * label = @Translation("Twitter Tweet"), - * description = @Translation("Twitter post embed source."), - * thumbnail = "twitter.png", + * label = @Translation("X post (formally Twitter tweet)"), + * description = @Translation("X post (formally Twitter tweet) embed source."), + * thumbnail = "x-twitter.png", * active = TRUE, * ) */ @@ -31,7 +31,7 @@ class Twitter extends EmbedSourceBase implements EmbedSourceInterface { /** * {@inheritdoc} */ - protected static $instructions = 'On the Twitter website, click the triangular (...) icon on the upper-right corner of a tweet and select the \'Embed Tweet\' item from the contextual menu. The embed code will appear in an input-box on this interface.'; + protected static $instructions = 'On the X website, click the (...) icon on the upper-right corner of a post and select the \'Embed Post\' item from the contextual menu. Select \'Embedded Post\'. The embed code will appear in an input-box on this interface.'; /** * {@inheritdoc} diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceBase.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceBase.php index 16e324a648..fc66084c8e 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceBase.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceBase.php @@ -85,7 +85,7 @@ public function __construct( array $configuration, $plugin_id, $plugin_definition, - ConfigFactoryInterface $config_factory + ConfigFactoryInterface $config_factory, ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->config = $config_factory->get('media.settings'); @@ -98,7 +98,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $configuration, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceManager.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceManager.php index 8bff07f81b..c411b6b205 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceManager.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/EmbedSourceManager.php @@ -43,7 +43,7 @@ class EmbedSourceManager extends DefaultPluginManager { public function __construct( \Traversable $namespaces, CacheBackendInterface $cache_backend, - ModuleHandlerInterface $module_handler + ModuleHandlerInterface $module_handler, ) { parent::__construct( 'Plugin/EmbedSource', diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldFormatter/EmbedDefaultFormatter.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldFormatter/EmbedDefaultFormatter.php index 3c29c0b7e0..8746289106 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldFormatter/EmbedDefaultFormatter.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldFormatter/EmbedDefaultFormatter.php @@ -66,7 +66,7 @@ public function __construct( string $view_mode, array $third_party_settings, EmbedSourceManager $embed_manager, - LoggerChannelFactoryInterface $logger + LoggerChannelFactoryInterface $logger, ) { parent::__construct( $plugin_id, @@ -88,7 +88,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $plugin_id, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldWidget/EmbedDefaultWidget.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldWidget/EmbedDefaultWidget.php index 39684abcbb..852eb22e7e 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldWidget/EmbedDefaultWidget.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/Field/FieldWidget/EmbedDefaultWidget.php @@ -51,7 +51,7 @@ public function __construct( FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, - EmbedSourceManager $embed_manager + EmbedSourceManager $embed_manager, ) { parent::__construct( $plugin_id, @@ -70,7 +70,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $plugin_id, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/media/Source/Embed.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/media/Source/Embed.php index 7c614370d7..a52e2740a7 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/media/Source/Embed.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/src/Plugin/media/Source/Embed.php @@ -63,7 +63,7 @@ public function __construct( EntityFieldManagerInterface $entity_field_manager, ConfigFactoryInterface $config_factory, FieldTypePluginManagerInterface $field_type_manager, - EmbedSourceManager $embed_manager + EmbedSourceManager $embed_manager, ) { parent::__construct( $configuration, @@ -84,7 +84,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $configuration, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.install b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.install index d8e3b058ca..505f385139 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.install +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_embed/ys_embed.install @@ -7,6 +7,7 @@ use Drupal\Core\File\Exception\FileException; use Drupal\Core\File\FileSystemInterface; +use Drupal\file\Entity\File; /** * Implements hook_install(). @@ -66,3 +67,83 @@ function ys_embed_update_9001() { } } } + +/** + * Implements hook_update(). + * + * Updates all twitter social media links to use the x config item. + */ +function ys_embed_update_9002() { + // Update footer twitter link to use x-twitter. + $config = \Drupal::configFactory()->getEditable('ys_core.social_links'); + $config->set('x-twitter', $config->get('twitter')); + $config->clear('twitter'); + $config->save(); + + $source = \Drupal::service('extension.list.module')->getPath('ys_embed') . '/images/icons'; + // @todo Debug why the destination can not be loaded dynamically on install. + // $destination = \Drupal::config('media.settings')->get('icon_base_uri'); + $destination = "public://media-icons/generic"; + /** @var \Drupal\Core\File\FileSystemInterface $file_system */ + $file_system = \Drupal::service('file_system'); + $file_system->prepareDirectory($destination, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS); + + $files = $file_system->scanDirectory($source, '/.*\.(svg|png|jpg|jpeg|gif)$/'); + foreach ($files as $file) { + // Usually we would check if the file exists, however we want to refresh + // all of the icons, so we're attempting the copy on all files found. + try { + $file_system->copy($file->uri, $destination, FileSystemInterface::EXISTS_REPLACE); + } + catch (FileException $e) { + // Ignore and continue. + } + + } + + // Update all media that are using twitter.png to use x-twitter.png. + $config = \Drupal::configFactory()->getEditable('media.settings'); + $icon_base_uri = $config->get('icon_base_uri'); + + // Update the file_managed twitter.png file to x-twitter.png. + $query = \Drupal::entityQuery('file') + ->accessCheck(FALSE) + ->condition('filename', 'twitter.png'); + $fids = $query->execute(); + + if ($fids) { + foreach ($fids as $fid) { + $file = File::load($fid); + $file->setFilename('x-twitter.png'); + $file->setFileUri($icon_base_uri . '/x-twitter.png'); + $file->save(); + } + } +} + +/** + * Implements hook_update(). + */ +function ys_embed_update_9003() { + // Copy the localist.png file to the media-icons/generic folder. + $source = \Drupal::service('extension.list.module')->getPath('ys_embed') . '/images/icons/localist.png'; + $destination = "public://styles/media_library/public/media-icons/generic"; + /** @var \Drupal\Core\File\FileSystemInterface $file_system */ + $file_system = \Drupal::service('file_system'); + $file_system->prepareDirectory($destination, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS); + + // When reinstalling the media module we don't want to copy the icons when + // they already exist. The icons could be replaced (by a contrib module or + // manually), so we don't want to replace the existing files. Removing the + // files when we uninstall could also be a problem if the files are + // referenced somewhere else. Since showing an error that it was not + // possible to copy the files is also confusing, we silently do nothing. + if (!file_exists($destination . DIRECTORY_SEPARATOR . 'localist.png')) { + try { + $file_system->copy($source, $destination, FileSystemInterface::EXISTS_ERROR); + } + catch (FileException $e) { + // Ignore and continue. + } + } +} diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileContactBlock.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileContactBlock.php index f728e4965e..e1734419ea 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileContactBlock.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileContactBlock.php @@ -63,8 +63,8 @@ public function __construct( $plugin_definition, RouteMatchInterface $route_match, RequestStack $request_stack, - EntityTypeManagerInterface $entity_type_manager - ) { + EntityTypeManagerInterface $entity_type_manager, + ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->routeMatch = $route_match; @@ -79,8 +79,8 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition - ) { + $plugin_definition, + ) { return new static( $configuration, $plugin_id, @@ -117,9 +117,9 @@ public function build() { if ($route && $node) { // Profile fields. - $email = $node->get('field_email')->getValue()[0]['value'] ?? NULL; - $phone = $node->get('field_telephone')->getValue()[0]['value'] ?? NULL; - $address = $node->get('field_address')->getValue()[0]['value'] ?? NULL; + $email = $this->getValueFor($node, 'field_email'); + $phone = $this->getValueFor($node, 'field_telephone'); + $address = $this->getValueFor($node, 'field_address'); } return [ @@ -130,4 +130,34 @@ public function build() { ]; } + /** + * Get the value for a specific field. + * + * @param object $node + * The node object. + * @param string $name + * The field name. + * + * @return mixed + * The field value. + */ + protected function getValueFor($node, $name) { + try { + $fieldObject = $node->get($name); + } + catch (\Exception $e) { + return NULL; + } + + $valueObject = $fieldObject->getValue(); + if ($valueObject) { + $firstElement = $valueObject[0]; + if ($firstElement) { + return $firstElement['value']; + } + } + + return NULL; + } + } diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileMetaBlock.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileMetaBlock.php index 4f51fab769..0cd5f29aec 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileMetaBlock.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/Plugin/Block/ProfileMetaBlock.php @@ -63,8 +63,8 @@ public function __construct( $plugin_definition, RouteMatchInterface $route_match, RequestStack $request_stack, - EntityTypeManagerInterface $entity_type_manager - ) { + EntityTypeManagerInterface $entity_type_manager, + ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->routeMatch = $route_match; @@ -79,8 +79,8 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition - ) { + $plugin_definition, + ) { return new static( $configuration, $plugin_id, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_themes/ys_themes.module b/web/profiles/custom/yalesites_profile/modules/custom/ys_themes/ys_themes.module index 50598818e1..78e1e61ea6 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_themes/ys_themes.module +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_themes/ys_themes.module @@ -222,20 +222,28 @@ function ys_themes_form_alter(&$form, $form_state, $form_id) { $buttonTheme = $config->get('button_theme'); if (str_starts_with($form_id, 'webform') || $form_id == 'views_exposed_form') { - $form['actions']['submit']['#attributes']['data-cta-theme'] = $buttonTheme; - $form['actions']['submit']['#attributes']['data-cta-radius'] = 'none'; - $form['actions']['submit']['#attributes']['data-cta-style'] = 'filled'; - $form['actions']['submit']['#attributes']['data-cta-outline-weight'] = 2; - $form['actions']['submit']['#attributes']['data-cta-hover-style'] = 'fade'; - $form['actions']['submit']['#attributes']['class'][] = 'cta'; + $base = &$form['actions']['submit']; + } + + if ($form_id == 'content_moderation_entity_moderation_form') { + $base = &$form['submit']; + } + + if (str_starts_with($form_id, 'webform') || $form_id == 'views_exposed_form' || $form_id == 'content_moderation_entity_moderation_form') { + + $base['#attributes']['data-cta-theme'] = $buttonTheme; + $base['#attributes']['data-cta-radius'] = 'none'; + $base['#attributes']['data-cta-style'] = 'filled'; + $base['#attributes']['data-cta-outline-weight'] = 2; + $base['#attributes']['data-cta-hover-style'] = 'fade'; + $base['#attributes']['class'][] = 'cta'; // Removes class that causes unnecessary styling. - $classes = &$form['actions']['submit']['#attributes']; + $classes = &$base['#attributes']; $classes = array_filter($classes, function ($e) { return $e != 'form-item__textfield'; }); } - } /** @@ -269,3 +277,34 @@ function ys_themes_preprocess_form_element(array &$variables) { } } } + +/** + * Implements hook_preprocess_html(). + */ +function ys_themes_preprocess_html(&$variables) { + /* + * Adds an attribute to the body if the page title is hidden. This assists + * with breadcrumb styling to make sure that it has enough bottom margin. + */ + $route_match = \Drupal::service('current_route_match'); + // Check if this is a node. + if ($node = $route_match->getParameter('node')) { + // Check if we have layout builder enabled. + if ($layoutBuilder = $node->layout_builder__layout) { + foreach ($layoutBuilder->getSections() as $section) { + // Check that the section is the page meta section. + if ($section->getLayoutId() == 'ys_layout_page_meta') { + foreach ($section->getComponents() as $component) { + // Check that the layout builder component is the page_meta_block. + if ($component->get('configuration')['id'] == 'page_meta_block') { + // Check that the page_meta_block doesn't have a visible title. + if (!str_contains($component->get('configuration')['page_title_display'], "visible")) { + $variables['attributes']['page-title-hidden'] = 'true'; + } + } + } + } + } + } + } +} diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_toolbar/src/ToolbarItemsService.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_toolbar/src/ToolbarItemsService.php index 57fafccea8..3fd109b787 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_toolbar/src/ToolbarItemsService.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_toolbar/src/ToolbarItemsService.php @@ -88,7 +88,7 @@ public function __construct( RouteMatchInterface $routeMatch, RedirectDestination $redirect_destination, AccountInterface $account, - LocalTaskManagerInterface $local_task_manager + LocalTaskManagerInterface $local_task_manager, ) { $this->accessManager = $access_manager; $this->routeMatch = $routeMatch; diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicDefaultFormatter.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicDefaultFormatter.php index f4be88d7ad..32cd323b37 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicDefaultFormatter.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicDefaultFormatter.php @@ -68,7 +68,7 @@ public function __construct( string $view_mode, array $third_party_settings, ViewsBasicManager $viewsBasicManager, - Renderer $renderer_service + Renderer $renderer_service, ) { parent::__construct( $plugin_id, @@ -90,7 +90,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $plugin_id, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicPreviewFormatter.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicPreviewFormatter.php index 7531b819b4..e3d13f64b4 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicPreviewFormatter.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldFormatter/ViewsBasicPreviewFormatter.php @@ -57,7 +57,7 @@ public function __construct( string $label, string $view_mode, array $third_party_settings, - ViewsBasicManager $viewsBasicManager + ViewsBasicManager $viewsBasicManager, ) { parent::__construct( $plugin_id, @@ -78,7 +78,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $plugin_id, diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldWidget/ViewsBasicDefaultWidget.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldWidget/ViewsBasicDefaultWidget.php index 7a780b4935..7f0f5ff54f 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldWidget/ViewsBasicDefaultWidget.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Plugin/Field/FieldWidget/ViewsBasicDefaultWidget.php @@ -55,7 +55,7 @@ public function __construct( FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, - ViewsBasicManager $views_basic_manager + ViewsBasicManager $views_basic_manager, ) { parent::__construct( $plugin_id, @@ -74,7 +74,7 @@ public static function create( ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $plugin_id, @@ -94,7 +94,7 @@ public function formElement( $delta, Array $element, Array &$form, - FormStateInterface $formState + FormStateInterface $formState, ) { $entity_list = $this->viewsBasicManager->entityTypeList(); diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php index db9347711f..81af81a682 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php @@ -173,8 +173,8 @@ class ViewsBasicManager extends ControllerBase implements ContainerInjectionInte */ public function __construct( EntityTypeManagerInterface $entity_type_manager, - EntityDisplayRepository $entity_display_repository - ) { + EntityDisplayRepository $entity_display_repository, + ) { $this->entityTypeManager = $entity_type_manager; $this->entityDisplayRepository = $entity_display_repository; $this->termStorage = $this->entityTypeManager->getStorage('taxonomy_term'); diff --git a/web/themes/custom/ys_admin_theme/css/gin-custom.css b/web/themes/custom/ys_admin_theme/css/gin-custom.css index 80b4496a03..92e3b2af93 100644 --- a/web/themes/custom/ys_admin_theme/css/gin-custom.css +++ b/web/themes/custom/ys_admin_theme/css/gin-custom.css @@ -39,10 +39,31 @@ } a.focal-point-preview-link { - /* color: var(--gin-color-primary); */ background-color: var(--gin-bg-layer2); } +/* Two column layout for profile add/edit form */ +@media screen and (min-width: 1000px) { + .ys-gin-two-column-wrapper { + display: grid; + gap: 1rem; + grid-template-columns: repeat(2, 1fr); + } + .ys-gin-two-column-wrapper .form-element { + width: 100%; + } +} + +.action-link--icon-trash.action-link--danger::before, +.button.button--danger::before { + background-color: var(--gin-color-danger) !important; +} + +.action-link--icon-trash.action-link--danger:hover::before, +.button.button--danger:hover::before { + background-color: var(--gin-bg-layer) !important; +} + /* stylelint-enable */ /*# sourceMappingURL=gin-custom.css.map */ diff --git a/web/themes/custom/ys_admin_theme/css/gin-custom.css.map b/web/themes/custom/ys_admin_theme/css/gin-custom.css.map index 224fb6e178..c4ade2c4c3 100644 --- a/web/themes/custom/ys_admin_theme/css/gin-custom.css.map +++ b/web/themes/custom/ys_admin_theme/css/gin-custom.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../scss/gin-custom.scss"],"names":[],"mappings":"AAAA;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;EAEE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;AACA;EACE;;;AAGF;EACE;;;AAGF;AACA;AACE;;AACA;EAEE;;;AAIJ;AACE;EACA;;;AAGF","file":"gin-custom.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../scss/gin-custom.scss"],"names":[],"mappings":"AAAA;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;EAEE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;AACA;EACE;;;AAGF;EACE;;;AAGF;AACA;AACE;;AACA;EAEE;;;AAIJ;EACE;;;AAGF;AAEE;EADF;IAEI;IACA;IACA;;EAEA;IACE;;;;AAMN;AAAA;EAEE;;;AAGF;AAAA;EAEE;;;AAGF","file":"gin-custom.css"} \ No newline at end of file diff --git a/web/themes/custom/ys_admin_theme/scss/gin-custom.scss b/web/themes/custom/ys_admin_theme/scss/gin-custom.scss index ff269ecfc7..cf2d91d9b4 100644 --- a/web/themes/custom/ys_admin_theme/scss/gin-custom.scss +++ b/web/themes/custom/ys_admin_theme/scss/gin-custom.scss @@ -45,4 +45,28 @@ a.focal-point-preview-link { background-color: var(--gin-bg-layer2); } +/* Two column layout for profile add/edit form */ +.ys-gin-two-column-wrapper { + @media screen and (min-width: 1000px) { + display: grid; + gap: 1rem; + grid-template-columns: repeat(2, 1fr); + + .form-element { + width: 100%; + } + } +} + +// Override the trash icon color for the delete button +.action-link--icon-trash.action-link--danger::before, +.button.button--danger::before { + background-color: var(--gin-color-danger) !important; +} + +.action-link--icon-trash.action-link--danger:hover::before, +.button.button--danger:hover::before { + background-color: var(--gin-bg-layer) !important; +} + /* stylelint-enable */