From 1f82a072260e014f7fb98b135c4aeb670f5c8663 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 11 Jan 2021 00:23:26 +0000 Subject: [PATCH] Place the related content block References #3 --- config/block.block.aboutme.yml | 2 +- config/block.block.opdavies_local_actions.yml | 2 +- config/block.block.opdavies_local_tasks.yml | 2 +- .../block.block.opdavies_mainpagecontent.yml | 2 +- config/block.block.opdavies_page_title.yml | 2 +- config/block.block.relatedposts.yml | 36 +++++++++++++++++++ 6 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 config/block.block.relatedposts.yml diff --git a/config/block.block.aboutme.yml b/config/block.block.aboutme.yml index e78b82d..3d03c84 100644 --- a/config/block.block.aboutme.yml +++ b/config/block.block.aboutme.yml @@ -12,7 +12,7 @@ dependencies: id: aboutme theme: opdavies region: content -weight: 0 +weight: -1 provider: null plugin: 'block_content:5124375b-ca89-4c71-90f6-b8ef4e83ecbb' settings: diff --git a/config/block.block.opdavies_local_actions.yml b/config/block.block.opdavies_local_actions.yml index 247ef0e..928bf54 100644 --- a/config/block.block.opdavies_local_actions.yml +++ b/config/block.block.opdavies_local_actions.yml @@ -9,7 +9,7 @@ _core: id: opdavies_local_actions theme: opdavies region: content -weight: -2 +weight: -4 provider: null plugin: local_actions_block settings: diff --git a/config/block.block.opdavies_local_tasks.yml b/config/block.block.opdavies_local_tasks.yml index ab25d97..2344beb 100644 --- a/config/block.block.opdavies_local_tasks.yml +++ b/config/block.block.opdavies_local_tasks.yml @@ -9,7 +9,7 @@ _core: id: opdavies_local_tasks theme: opdavies region: content -weight: -3 +weight: -5 provider: null plugin: local_tasks_block settings: diff --git a/config/block.block.opdavies_mainpagecontent.yml b/config/block.block.opdavies_mainpagecontent.yml index 46042e7..c09e484 100644 --- a/config/block.block.opdavies_mainpagecontent.yml +++ b/config/block.block.opdavies_mainpagecontent.yml @@ -9,7 +9,7 @@ dependencies: id: opdavies_mainpagecontent theme: opdavies region: content -weight: -1 +weight: -3 provider: null plugin: system_main_block settings: diff --git a/config/block.block.opdavies_page_title.yml b/config/block.block.opdavies_page_title.yml index d6b97f3..54711c7 100644 --- a/config/block.block.opdavies_page_title.yml +++ b/config/block.block.opdavies_page_title.yml @@ -9,7 +9,7 @@ _core: id: opdavies_page_title theme: opdavies region: content -weight: -4 +weight: -6 provider: null plugin: page_title_block settings: diff --git a/config/block.block.relatedposts.yml b/config/block.block.relatedposts.yml new file mode 100644 index 0000000..eda4f63 --- /dev/null +++ b/config/block.block.relatedposts.yml @@ -0,0 +1,36 @@ +uuid: a524befa-25df-44a7-90dd-58588da3019a +langcode: en +status: true +dependencies: + module: + - ctools + - node + - opdavies_blog + theme: + - opdavies +id: relatedposts +theme: opdavies +region: content +weight: -2 +provider: null +plugin: opdavies_blog_related_posts +settings: + id: opdavies_blog_related_posts + label: 'Related Posts' + provider: opdavies_blog + label_display: visible +visibility: + 'entity_bundle:node': + id: 'entity_bundle:node' + bundles: + post: post + negate: false + context_mapping: + node: '@node.node_route_context:node' + node_type: + id: node_type + bundles: + post: post + negate: false + context_mapping: + node: '@node.node_route_context:node'