From 5cda00eca82b992b652722d6ca8a320429d718b0 Mon Sep 17 00:00:00 2001 From: Clayton Dewey Date: Wed, 26 Dec 2018 20:04:22 -0700 Subject: [PATCH] Update Admin Content view to be more relevant and usable --- config/sync/views.view.content.yml | 184 +++++++++++++++++++++++++---- 1 file changed, 162 insertions(+), 22 deletions(-) diff --git a/config/sync/views.view.content.yml b/config/sync/views.view.content.yml index 09936c6..5f6cb1e 100644 --- a/config/sync/views.view.content.yml +++ b/config/sync/views.view.content.yml @@ -4,6 +4,7 @@ status: true dependencies: module: - node + - statistics - user _core: default_config_hash: tS8PbpJX90aRFC3-UTgXzdqkq7_2frk2pz4TMijEebM @@ -283,6 +284,73 @@ display: plugin_id: field entity_type: node entity_field: status + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + label: Created + 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: 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: timestamp + settings: + date_format: html_date + custom_date_format: '' + timezone: '' + 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: node + entity_field: created + plugin_id: field changed: id: changed table: node_field_data @@ -305,6 +373,63 @@ display: plugin_id: field entity_type: node entity_field: changed + totalcount: + id: totalcount + table: node_counter + field: totalcount + relationship: none + group_type: group + admin_label: '' + label: 'Total views' + 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: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: false + format_plural_string: !!binary MQNAY291bnQ= + prefix: '' + suffix: '' + plugin_id: statistics_numeric operations: id: operations table: node @@ -483,32 +608,47 @@ display: plugin_id: boolean entity_type: node entity_field: status - langcode: - id: langcode + status_extra: + id: status_extra table: node_field_data - field: langcode - relationship: none + field: status_extra + operator: '=' + value: false + plugin_id: node_status + group: 1 + entity_type: node + title_1: + id: title_1 + table: node_field_data + field: title + relationship: field_authors group_type: group admin_label: '' - operator: in - value: { } + operator: contains + value: '' group: 1 exposed: true expose: - operator_id: langcode_op - label: Language + operator_id: title_1_op + label: Author description: '' use_operator: false - operator: langcode_op - identifier: langcode + operator: title_1_op + identifier: title_1 required: false remember: false multiple: false remember_roles: authenticated: authenticated anonymous: '0' + contributor: '0' + editor: '0' + manager: '0' administrator: '0' - reduce: false + past: '0' + partner: '0' + staff: '0' + placeholder: '' is_grouped: false group_info: label: '' @@ -521,18 +661,9 @@ display: default_group: All default_group_multiple: { } group_items: { } - plugin_id: language - entity_type: node - entity_field: langcode - status_extra: - id: status_extra - table: node_field_data - field: status_extra - operator: '=' - value: false - plugin_id: node_status - group: 1 entity_type: node + entity_field: title + plugin_id: string sorts: { } title: Content empty: @@ -552,6 +683,15 @@ display: admin_label: author required: true plugin_id: standard + field_authors: + id: field_authors + table: node__field_authors + field: field_authors + relationship: none + group_type: group + admin_label: Authors + required: false + plugin_id: standard show_admin_links: false filter_groups: operator: AND