From 5f5a483881664f282696cef29f5e7f285ae0ee5d Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 21 Apr 2022 11:56:30 +0200 Subject: [PATCH] tags admin views imporved #1521 --- composer.json | 3 +- composer.lock | 60 +- config/sync/core.extension.yml | 1 + config/sync/views.view.admin_taxo.yml | 657 +++++++++++++++++++++- config/sync/views_field_view.settings.yml | 3 + 5 files changed, 719 insertions(+), 5 deletions(-) create mode 100644 config/sync/views_field_view.settings.yml diff --git a/composer.json b/composer.json index 7c4170f..f880fad 100644 --- a/composer.json +++ b/composer.json @@ -157,7 +157,7 @@ "drupal/telephone_validation": "^2.1", "drupal/term_reference_tree": "^1", "drupal/translate_side_by_side": "^1.x-dev", - "drupal/translation_views": "^1.x-dev", + "drupal/translation_views": "1.x-dev@dev", "drupal/ultimate_cron": "^2.x-dev", "drupal/unique_content_field_validation": "^1.0", "drupal/url_to_video_filter": "^2.0", @@ -167,6 +167,7 @@ "drupal/views_conditional": "^1.x-dev", "drupal/views_data_export": "^1.1", "drupal/views_ef_fieldset": "^1.5", + "drupal/views_field_view": "1.x-dev@dev", "drupal/webform": "^6.0", "drupal/workflow": "^1.5", "drush/drush": "^10.6", diff --git a/composer.lock b/composer.lock index df523f8..5b19f25 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1b136647bf70d7d1c350f23bced3287a", + "content-hash": "2961e2ba19ee1686d7e175c2e092352b", "packages": [ { "name": "alchemy/zippy", @@ -14578,6 +14578,63 @@ "source": "https://git.drupalcode.org/project/views_ef_fieldset" } }, + { + "name": "drupal/views_field_view", + "version": "dev-1.x", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/views_field_view.git", + "reference": "8e9ceafe48b8f684bbd379780dba46870d00aeb0" + }, + "require": { + "drupal/core": "^8 || ^9" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.0-beta3+3-dev", + "datestamp": "1649428626", + "security-coverage": { + "status": "not-covered", + "message": "Dev releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "damiankloip", + "homepage": "https://www.drupal.org/user/1037976" + }, + { + "name": "dawehner", + "homepage": "https://www.drupal.org/user/99340" + }, + { + "name": "jibran", + "homepage": "https://www.drupal.org/user/1198144" + }, + { + "name": "tizzo", + "homepage": "https://www.drupal.org/user/168251" + }, + { + "name": "voxpelli", + "homepage": "https://www.drupal.org/user/341713" + } + ], + "description": "Adds a view field handler to embed views inside views.", + "homepage": "https://www.drupal.org/project/views_field_view", + "support": { + "source": "https://git.drupalcode.org/project/views_field_view" + } + }, { "name": "drupal/webform", "version": "6.1.3", @@ -25155,6 +25212,7 @@ "drupal/ultimate_cron": 20, "drupal/user_email_verification": 20, "drupal/views_conditional": 20, + "drupal/views_field_view": 20, "weitzman/drupal-test-traits": 20, "drupal/autocomplete_deluxe": 5, "drupal/better_exposed_filters": 10, diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 61667b7..d306444 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -224,6 +224,7 @@ module: views_conditional: 0 views_data_export: 0 views_ef_fieldset: 0 + views_field_view: 0 vue_link_formatter: 0 webform: 0 webform_ui: 0 diff --git a/config/sync/views.view.admin_taxo.yml b/config/sync/views.view.admin_taxo.yml index 26ed1c6..d647ecf 100644 --- a/config/sync/views.view.admin_taxo.yml +++ b/config/sync/views.view.admin_taxo.yml @@ -31,6 +31,7 @@ dependencies: - taxonomy - user - views_bulk_operations + - views_field_view - workflow id: admin_taxo label: 'Admin Taxo' @@ -1062,6 +1063,460 @@ display: - 'config:field.storage.taxonomy_term.field_memo' - 'config:field.storage.taxonomy_term.field_migration' - 'config:field.storage.taxonomy_term.field_workflow' + embed_1: + id: embed_1 + display_title: 'embeded tags french' + display_plugin: embed + position: 6 + display_options: + fields: + name: + id: name + table: taxonomy_term_field_data + field: name + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: name + plugin_id: term_name + 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: false + ellipsis: false + 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 + convert_spaces: false + arguments: + tid: + id: tid + table: taxonomy_term_field_revision + field: tid + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: tid + plugin_id: numeric + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: node + default_argument_options: { } + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + 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 + filters: + langcode: + id: langcode + table: taxonomy_term_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: langcode + plugin_id: language + operator: in + value: + fr: fr + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + langcode_1: + id: langcode_1 + table: taxonomy_term_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: langcode + plugin_id: language + operator: in + value: + fr: fr + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: { } + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: { } + defaults: + style: false + row: false + fields: false + arguments: false + filters: false + filter_groups: false + header: false + display_description: '' + header: { } + display_extenders: + views_ef_fieldset: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: { } + embed_2: + id: embed_2 + display_title: 'embeded tags synonyms french' + display_plugin: embed + position: 6 + display_options: + fields: + field_synonyms: + id: field_synonyms + table: taxonomy_term__field_synonyms + field: field_synonyms + relationship: none + group_type: group + admin_label: '' + plugin_id: field + 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: false + 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 + arguments: + tid: + id: tid + table: taxonomy_term_field_revision + field: tid + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: tid + plugin_id: numeric + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: node + default_argument_options: { } + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + 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 + filters: + langcode: + id: langcode + table: taxonomy_term_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: langcode + plugin_id: language + operator: in + value: + fr: fr + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + langcode_1: + id: langcode_1 + table: taxonomy_term_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: langcode + plugin_id: language + operator: in + value: + fr: fr + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: { } + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: { } + defaults: + style: false + row: false + fields: false + arguments: false + filters: false + filter_groups: false + header: false + display_description: '' + header: { } + display_extenders: + views_ef_fieldset: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: + - 'config:field.storage.taxonomy_term.field_synonyms' page_1: id: page_1 display_title: 'Page Companies' @@ -4095,7 +4550,7 @@ display: entity_type: taxonomy_term entity_field: name plugin_id: term_name - label: Name + label: 'Name [EN]' exclude: false alter: alter_text: true @@ -4202,6 +4657,58 @@ display: empty_zero: false hide_alter_empty: true destination: false + view: + id: view + table: views + field: view + relationship: none + group_type: group + admin_label: '' + plugin_id: view + label: 'Nom [FR]' + 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 + view: admin_taxo + display: embed_1 + arguments: '{{ raw_fields.tid }}' field_synonyms: id: field_synonyms table: taxonomy_term__field_synonyms @@ -4210,7 +4717,7 @@ display: group_type: group admin_label: '' plugin_id: field - label: Synonyms + label: 'Synonyms [EN]' exclude: false alter: alter_text: false @@ -4265,6 +4772,58 @@ display: multi_type: separator separator: '
' field_api_classes: false + view_1: + id: view_1 + table: views + field: view + relationship: none + group_type: group + admin_label: '' + plugin_id: view + label: 'Synonyms [FR]' + 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 + view: admin_taxo + display: embed_2 + arguments: '{{ raw_fields.tid }}' parent_target_id: id: parent_target_id table: taxonomy_term__parent @@ -4566,6 +5125,98 @@ display: default_group: All default_group_multiple: { } group_items: { } + langcode: + id: langcode + table: taxonomy_term_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: taxonomy_term + entity_field: langcode + plugin_id: language + operator: in + value: + en: en + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + field_synonyms_value: + id: field_synonyms_value + table: taxonomy_term__field_synonyms + field: field_synonyms_value + relationship: none + group_type: group + admin_label: '' + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: field_synonyms_value_op + label: Synonyms + description: '' + use_operator: false + operator: field_synonyms_value_op + operator_limit_selection: false + operator_list: { } + identifier: field_synonyms_value + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + unverified: '0' + anonymous: '0' + free_user: '0' + contact_company: '0' + alpha_testeur: '0' + student: '0' + adherent: '0' + translator: '0' + admin_showroom: '0' + admin: '0' + root: '0' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } filter_groups: operator: AND groups: @@ -4663,6 +5314,7 @@ display: filters: false filter_groups: false display_description: '' + rendering_language: en display_extenders: views_ef_fieldset: { } path: admin/content/tags @@ -4678,7 +5330,6 @@ display: cache_metadata: max-age: 0 contexts: - - 'languages:language_content' - 'languages:language_interface' - url - url.query_args diff --git a/config/sync/views_field_view.settings.yml b/config/sync/views_field_view.settings.yml new file mode 100644 index 0000000..25f0b1f --- /dev/null +++ b/config/sync/views_field_view.settings.yml @@ -0,0 +1,3 @@ +_core: + default_config_hash: s3zJAHh3WGp6g2aV1-IhRrq--hHUWGT84i23gVHRi4Y +evil: false