diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index c4883356df84d248ec1af87679587979751a42db..0e119e323cd7404d858df553bc1f113e4877b717 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -122,6 +122,7 @@ blocknodebundle blockpromoted blockquotes blockrecipe +blockrelated blocktest bloggy blub diff --git a/core/profiles/demo_umami/config/install/core.entity_view_display.node.recipe.full.yml b/core/profiles/demo_umami/config/install/core.entity_view_display.node.recipe.full.yml index a8dcbb80a2677e0477e17e24726e872f648e5ef5..6eb48804da838599fe67d394ce0b901cc3a71291 100644 --- a/core/profiles/demo_umami/config/install/core.entity_view_display.node.recipe.full.yml +++ b/core/profiles/demo_umami/config/install/core.entity_view_display.node.recipe.full.yml @@ -15,12 +15,14 @@ dependencies: - field.field.node.recipe.field_tags - field.field.node.recipe.layout_builder__layout - node.type.recipe + - views.view.related_recipes module: - layout_builder - layout_discovery - options - text - user + - views theme: - umami third_party_settings: @@ -245,6 +247,26 @@ third_party_settings: weight: 0 additional: { } third_party_settings: { } + - + layout_id: layout_onecol + layout_settings: + label: related + context_mapping: { } + components: + 3164f99a-0a52-403e-a921-fad17cb6e8c7: + uuid: 3164f99a-0a52-403e-a921-fad17cb6e8c7 + region: content + configuration: + id: 'views_block:related_recipes-related_recipes_block' + label: '' + label_display: visible + provider: views + context_mapping: { } + views_label: '' + items_per_page: none + weight: 0 + additional: { } + third_party_settings: { } id: node.recipe.full targetEntityType: node bundle: recipe diff --git a/core/profiles/demo_umami/config/install/views.view.related_recipes.yml b/core/profiles/demo_umami/config/install/views.view.related_recipes.yml new file mode 100644 index 0000000000000000000000000000000000000000..ff8c4efa54088f374d11e806d9b3deafd4b71f2f --- /dev/null +++ b/core/profiles/demo_umami/config/install/views.view.related_recipes.yml @@ -0,0 +1,305 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.card + - node.type.recipe + module: + - node + - user +id: related_recipes +label: Related recipes +module: views +description: 'Related recipes listing' +tag: '' +base_table: node_field_data +base_field: nid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Related recipes' + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + make_link: false + absolute: false + word_boundary: false + ellipsis: false + strip_tags: false + trim: false + 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 + pager: + type: some + options: + offset: 0 + items_per_page: 4 + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + 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: 'access content' + cache: + type: tag + options: { } + empty: { } + sorts: + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: created + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: '' + exposed: false + granularity: second + arguments: + nid: + id: nid + table: node_field_data + field: nid + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: nid + plugin_id: node_nid + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: node + default_argument_options: { } + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: true + field_recipe_category_target_id: + id: field_recipe_category_target_id + table: node__field_recipe_category + field: field_recipe_category_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: numeric + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: taxonomy_tid + default_argument_options: + term_page: '0' + node: true + limit: false + vids: { } + anyall: ',' + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: true + not: false + filters: + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + recipe: recipe + expose: + operator_limit_selection: false + operator_list: { } + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: langcode + plugin_id: language + operator: in + value: + '***LANGUAGE_language_content***': '***LANGUAGE_language_content***' + 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: { } + style: + type: default + options: + row_class: '' + default_row_class: true + uses_fields: false + row: + type: 'entity:node' + options: + relationship: none + view_mode: card + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + css_class: grid--4 + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + - user.permissions + tags: { } + related_recipes_block: + id: related_recipes_block + display_title: Block + display_plugin: block + position: 1 + display_options: + display_extenders: { } + block_description: 'Related recipes' + block_hide_empty: true + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css b/core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css index dc40728b37369bbef749c7bf85690ad28818ca90..fb360d3fa6d800b9c7e45054803377dfe279c093 100644 --- a/core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css +++ b/core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css @@ -72,3 +72,7 @@ .node--type-recipe.node--view-mode-full .field--name-field-difficulty { background-image: url(../../../../images/svg/difficulty.svg); } + +.node--type-recipe.node--view-mode-full .block-views-blockrelated-recipes-related-recipes-block { + margin-top: 2rem; +}