From 32803ff8a829842daf3643ad1348b729a52a7a43 Mon Sep 17 00:00:00 2001 From: naomi Date: Wed, 11 Apr 2018 13:40:08 +0200 Subject: [PATCH] Added config for "this person's hats" view and its block placement Also moved other configurations into the optional dir --- ...k.block.exposedformperson_searchpage_1.yml | 0 .../block.block.hatcreator.yml | 1 - ...iews_block__this_person_s_hats_block_1.yml | 30 ++ .../views.view.this_person_s_hats.yml | 362 ++++++++++++++++++ 4 files changed, 392 insertions(+), 1 deletion(-) rename config/{install => optional}/block.block.exposedformperson_searchpage_1.yml (100%) rename config/{install => optional}/block.block.hatcreator.yml (94%) create mode 100644 config/optional/block.block.views_block__this_person_s_hats_block_1.yml create mode 100644 config/optional/views.view.this_person_s_hats.yml diff --git a/config/install/block.block.exposedformperson_searchpage_1.yml b/config/optional/block.block.exposedformperson_searchpage_1.yml similarity index 100% rename from config/install/block.block.exposedformperson_searchpage_1.yml rename to config/optional/block.block.exposedformperson_searchpage_1.yml diff --git a/config/install/block.block.hatcreator.yml b/config/optional/block.block.hatcreator.yml similarity index 94% rename from config/install/block.block.hatcreator.yml rename to config/optional/block.block.hatcreator.yml index 0156ebe..a010cf0 100644 --- a/config/install/block.block.hatcreator.yml +++ b/config/optional/block.block.hatcreator.yml @@ -14,7 +14,6 @@ provider: null plugin: hat_creator settings: id: hat_creator - label: 'Hat creator' provider: zencrm label_display: visible visibility: diff --git a/config/optional/block.block.views_block__this_person_s_hats_block_1.yml b/config/optional/block.block.views_block__this_person_s_hats_block_1.yml new file mode 100644 index 0000000..1828aa4 --- /dev/null +++ b/config/optional/block.block.views_block__this_person_s_hats_block_1.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - views.view.this_person_s_hats + module: + - system + - views + theme: + - bartik +id: views_block__this_person_s_hats_block_1 +theme: bartik +region: content +weight: -2 +provider: null +plugin: 'views_block:this_person_s_hats-block_1' +settings: + id: 'views_block:this_person_s_hats-block_1' + label: '' + provider: views + label_display: visible + views_label: '' + items_per_page: none + context_mapping: { } +visibility: + request_path: + id: request_path + pages: '/zencrm/person/*' + negate: false + context_mapping: { } diff --git a/config/optional/views.view.this_person_s_hats.yml b/config/optional/views.view.this_person_s_hats.yml new file mode 100644 index 0000000..719d945 --- /dev/null +++ b/config/optional/views.view.this_person_s_hats.yml @@ -0,0 +1,362 @@ +langcode: en +status: true +dependencies: + module: + - zencrm_entities +id: this_person_s_hats +label: 'This Person''s Hats' +module: views +description: '' +tag: '' +base_table: hat_field_data +base_field: id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + 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 + pager: + type: none + options: + offset: 0 + style: + type: grid + row: + type: fields + fields: + id: + id: id + table: hat_field_data + field: id + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: true + 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: false + 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: number_integer + settings: + thousand_separator: '' + prefix_suffix: 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 + entity_type: hat + entity_field: id + plugin_id: field + type: + id: type + table: hat_field_data + field: type + relationship: none + group_type: group + admin_label: '' + label: '' + 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: false + 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 + entity_type: hat + entity_field: type + plugin_id: field + rendered_entity: + id: rendered_entity + table: hat + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + label: '' + 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: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: default + entity_type: hat + plugin_id: rendered_entity + nothing: + id: nothing + table: views + field: nothing + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: 'Edit' + 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: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: false + plugin_id: custom + filters: { } + sorts: { } + title: 'This Person''s Hats' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + person: + id: person + table: hat_field_data + field: person + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: raw + default_argument_options: + index: 2 + use_alias: false + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + 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: false + entity_type: hat + entity_field: person + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + tags: + - 'config:core.entity_view_display.hat.client.default' + block_1: + display_plugin: block + id: block_1 + display_title: Block + position: 1 + display_options: + display_extenders: { } + allow: + items_per_page: false + offset: '0' + pager: '0' + hide_fields: '0' + sort_fields: '0' + disable_filters: '0' + configure_sorts: '0' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + tags: + - 'config:core.entity_view_display.hat.client.default'