Moved more config into optional

This commit is contained in:
naomi
2018-04-11 14:49:12 +02:00
parent 8166372c02
commit 9575233ee1
6 changed files with 333 additions and 1 deletions

View File

@ -0,0 +1,22 @@
langcode: en
status: true
dependencies:
config:
- views.view.person_search
module:
- views
theme:
- bartik
id: exposedformperson_searchpage_1
theme: bartik
region: sidebar_first
weight: 0
provider: null
plugin: 'views_exposed_filter_block:person_search-page_1'
settings:
id: 'views_exposed_filter_block:person_search-page_1'
label: ''
provider: views
label_display: visible
views_label: ''
visibility: { }

View File

@ -0,0 +1,42 @@
langcode: en
status: true
dependencies:
config:
- search_api.server.zencrm_server
module:
- search_api
- zencrm_entities
id: person_index
name: 'Person Index'
description: ''
read_only: false
field_settings:
full_name:
label: 'Full Name'
datasource_id: 'entity:person'
property_path: full_name
type: text
datasource_settings:
'entity:person':
languages:
default: true
selected: { }
processor_settings:
processor_settings:
rendered_item: { }
aggregated_field: { }
add_url: { }
ignorecase:
all_fields: true
fields:
- full_name
weights:
preprocess_index: -20
preprocess_query: -20
tracker_settings:
default:
indexing_order: fifo
options:
index_directly: true
cron_limit: 50
server: zencrm_server

View File

@ -0,0 +1,16 @@
langcode: en
status: true
dependencies:
module:
- search_api_db
id: zencrm_server
name: 'Zen CRM Server'
description: ''
backend: search_api_db
backend_config:
database: 'default:default'
min_chars: 3
partial_matches: false
autocomplete:
suggest_suffix: true
suggest_words: true

View File

@ -0,0 +1,230 @@
langcode: en
status: true
dependencies:
config:
- search_api.index.person_index
module:
- search_api
id: person_search
label: 'Person Search'
module: views
description: ''
tag: ''
base_table: search_api_index_person_index
base_field: search_api_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:
bypass_access: false
skip_access: false
exposed_form:
type: basic
options:
submit_button: Search
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: mini
options:
items_per_page: 20
offset: 0
id: 0
total_pages: null
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
tags:
previous:
next:
style:
type: default
row:
type: fields
fields:
full_name:
id: full_name
table: search_api_index_person_index
field: full_name
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: 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
field_rendering: true
fallback_handler: search_api
fallback_options:
link_to_item: false
use_highlighting: false
multi_type: separator
multi_separator: ', '
entity_type: null
entity_field: null
plugin_id: search_api_field
filters:
search_api_fulltext:
id: search_api_fulltext
table: search_api_index_person_index
field: search_api_fulltext
relationship: none
group_type: group
admin_label: ''
operator: or
value: ''
group: 1
exposed: true
expose:
operator_id: search_api_fulltext_op
label: 'Search for People'
description: ''
use_operator: false
operator: search_api_fulltext_op
identifier: search_api_fulltext
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
standard_user: '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: { }
parse_mode: terms
min_length: null
fields: { }
plugin_id: search_api_fulltext
sorts: { }
title: 'Person Search'
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { }
use_ajax: true
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
tags: { }
block_1:
display_plugin: block
id: block_1
display_title: Block
position: 2
display_options:
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
tags: { }
page_1:
display_plugin: page
id: page_1
display_title: Page
position: 1
display_options:
display_extenders: { }
path: person-search
exposed_block: true
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
tags: { }