From 6044a63646dd31adebe3a883c81c9bb8fced960f Mon Sep 17 00:00:00 2001 From: naomi Date: Sun, 15 Apr 2018 17:15:37 +0200 Subject: [PATCH] removed "add person" block config (not working) Also changed Person Search no results behaviour (to use the missing block, but that's ok - it should alert that it's missing, and it's easy to recreate. --- .../block.block.linkforcreatinganewperson.yml | 24 ----------------- .../optional/views.view.person_search.yml | 27 ++++++++++++++++++- 2 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 config/optional/block.block.linkforcreatinganewperson.yml diff --git a/config/optional/block.block.linkforcreatinganewperson.yml b/config/optional/block.block.linkforcreatinganewperson.yml deleted file mode 100644 index 87ac474..0000000 --- a/config/optional/block.block.linkforcreatinganewperson.yml +++ /dev/null @@ -1,24 +0,0 @@ -langcode: en -status: true -dependencies: - content: - - 'block_content:basic:8b172f25-b43d-4094-8c03-7e0aee97e057' - module: - - block_content - theme: - - bartik -id: linkforcreatinganewperson -theme: bartik -region: sidebar_first -weight: 0 -provider: null -plugin: 'block_content:8b172f25-b43d-4094-8c03-7e0aee97e057' -settings: - id: 'block_content:8b172f25-b43d-4094-8c03-7e0aee97e057' - label: 'Link for creating a new person' - provider: block_content - label_display: '0' - status: true - info: '' - view_mode: full -visibility: { } diff --git a/modules/zencrm_search/config/optional/views.view.person_search.yml b/modules/zencrm_search/config/optional/views.view.person_search.yml index 1cb218d..cf815e1 100644 --- a/modules/zencrm_search/config/optional/views.view.person_search.yml +++ b/modules/zencrm_search/config/optional/views.view.person_search.yml @@ -2,6 +2,7 @@ langcode: en status: true dependencies: config: + - block.block.linkforcreatinganewperson - search_api.index.person_index module: - search_api @@ -183,7 +184,31 @@ display: title: 'Person Search' header: { } footer: { } - empty: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'No results.' + plugin_id: text_custom + entity_block: + id: entity_block + table: views + field: entity_block + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: true + target: linkforcreatinganewperson + view_mode: default + bypass_access: true + plugin_id: entity relationships: { } arguments: { } display_extenders: { }