From dde3acee3c5cc29de2e3ea87ef83d70d1a6d5f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 2 Oct 2019 17:07:46 -0400 Subject: [PATCH] OK; this view works for UIDs, now to try to make it work for usernames Generating path aliases for all these seems ill-advised, many won't have data, so why create the path? --- config/sync/views.view.blogs.yml | 42 ++++++++++++-------------------- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/config/sync/views.view.blogs.yml b/config/sync/views.view.blogs.yml index 1232ccf..817029b 100644 --- a/config/sync/views.view.blogs.yml +++ b/config/sync/views.view.blogs.yml @@ -226,24 +226,30 @@ display: position: 3 display_options: display_extenders: { } + path: blogs/% + display_description: 'Blog posts listings for each user.' + relationships: { } + defaults: + relationships: false + arguments: false arguments: uid: id: uid - table: users_field_data + table: node_field_data field: uid - relationship: uid + relationship: none group_type: group - admin_label: 'author' - default_action: 'not found' + admin_label: '' + default_action: default exception: value: all title_enable: false title: All - title_enable: true - title: '{{ arguments.uid }}''s blog' - default_argument_type: fixed + title_enable: false + title: '' + default_argument_type: user default_argument_options: - argument: '' + user: false default_argument_skip_url: false summary_options: base_path: '' @@ -261,25 +267,9 @@ display: validate_options: { } break_phrase: false not: false - entity_type: user + entity_type: node entity_field: uid - plugin_id: user_uid - defaults: - arguments: false - relationships: false - relationships: - id: uid - table: node_field_data - field: uid - relationship: none - group_type: group - admin_label: author - required: false - entity_type: node - entity_field: uid - plugin_id: standard - path: blogs/% - display_description: 'Blog posts listings for each user.' + plugin_id: numeric cache_metadata: max-age: -1 contexts: