From 9f96741e7afd82a85587fc188fdfdf3398a9fc0d Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 27 Feb 2019 14:54:34 +0100 Subject: [PATCH] admin views update for path aliases --- ...rm_display.node.enregistrement.default.yml | 26 +- .../sync/metatag.metatag_defaults.403.yml | 2 +- sites/default/config/sync/user.role.admin.yml | 3 + .../config/sync/user.role.collectionneur.yml | 3 + .../config/sync/views.view.content.yml | 357 ++++++++++++++++-- .../config/sync/views.view.redirect.yml | 4 +- .../views.view.workflow_entity_history.yml | 2 +- 7 files changed, 351 insertions(+), 46 deletions(-) diff --git a/sites/default/config/sync/core.entity_form_display.node.enregistrement.default.yml b/sites/default/config/sync/core.entity_form_display.node.enregistrement.default.yml index f7eb36444..e2a0213af 100644 --- a/sites/default/config/sync/core.entity_form_display.node.enregistrement.default.yml +++ b/sites/default/config/sync/core.entity_form_display.node.enregistrement.default.yml @@ -21,6 +21,7 @@ dependencies: module: - field_group - file + - path - synonyms - text - workflow @@ -28,11 +29,11 @@ third_party_settings: field_group: group_onglets: children: + - group_contenu - group_taxonomy - group_article - group_transcription - group_infos - - group_contenu parent_name: '' weight: 1 format_type: tabs @@ -48,7 +49,7 @@ third_party_settings: - field_nbr_locuteurs - field_description parent_name: group_onglets - weight: 26 + weight: 2 format_type: tab format_settings: id: '' @@ -63,7 +64,7 @@ third_party_settings: - langcode - field_workflow parent_name: group_onglets - weight: 30 + weight: 6 format_type: tab format_settings: id: '' @@ -77,7 +78,7 @@ third_party_settings: children: - body parent_name: group_onglets - weight: 28 + weight: 4 format_type: tab format_settings: id: '' @@ -92,7 +93,7 @@ third_party_settings: - field_transcript_vo - field_transcript_trad parent_name: group_onglets - weight: 29 + weight: 5 format_type: tab format_settings: id: '' @@ -108,7 +109,7 @@ third_party_settings: - field_langues - field_genres parent_name: group_onglets - weight: 27 + weight: 3 format_type: tab format_settings: id: '' @@ -142,7 +143,7 @@ content: region: content field_domain_access: type: options_buttons - weight: 40 + weight: 3 settings: { } third_party_settings: { } region: content @@ -150,7 +151,7 @@ content: type: boolean_checkbox settings: display_label: true - weight: 41 + weight: 4 third_party_settings: { } region: content field_entrees: @@ -231,6 +232,12 @@ content: third_party_settings: { } type: string_textfield region: content + path: + type: path + weight: 6 + region: content + settings: { } + third_party_settings: { } title: type: string_textfield weight: 0 @@ -240,7 +247,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 50 + weight: 5 region: content settings: { } third_party_settings: { } @@ -248,7 +255,6 @@ hidden: created: true field_collectionneurs: true field_locuteurs: true - path: true promote: true status: true sticky: true diff --git a/sites/default/config/sync/metatag.metatag_defaults.403.yml b/sites/default/config/sync/metatag.metatag_defaults.403.yml index 04ba48b14..b276faec2 100644 --- a/sites/default/config/sync/metatag.metatag_defaults.403.yml +++ b/sites/default/config/sync/metatag.metatag_defaults.403.yml @@ -5,7 +5,7 @@ dependencies: { } _core: default_config_hash: Da5YWhJdKLxaJ9gDRI1u5oCbm5WBxiiDgA4M1QrOEPQ id: '403' -label: '403 access denied' +label: 'page 403 accès refusé' tags: canonical_url: '[site:url]' shortlink: '[site:url]' diff --git a/sites/default/config/sync/user.role.admin.yml b/sites/default/config/sync/user.role.admin.yml index f8891c222..e04b4dcfc 100644 --- a/sites/default/config/sync/user.role.admin.yml +++ b/sites/default/config/sync/user.role.admin.yml @@ -15,6 +15,7 @@ permissions: - 'access toolbar' - 'access user profiles' - 'administer productions menu items' + - 'administer url aliases' - 'administer users' - 'change own username' - 'create content translations' @@ -28,6 +29,7 @@ permissions: - 'create terms in genres' - 'create terms in langues' - 'create terms in locuteurs' + - 'create url aliases' - 'delete any autre_son content' - 'delete any enregistrement content' - 'delete any evenement content' @@ -65,6 +67,7 @@ permissions: - 'execute views_bulk_edit all' - 'execute workflow_node_given_state_action node' - 'execute workflow_node_next_state_action node' + - 'notify of path changes' - 'revert any corpus_documents workflow_transition' - 'revert any generique workflow_transition' - 'revert autre_son revisions' diff --git a/sites/default/config/sync/user.role.collectionneur.yml b/sites/default/config/sync/user.role.collectionneur.yml index 5b20b6281..0ba11cf06 100644 --- a/sites/default/config/sync/user.role.collectionneur.yml +++ b/sites/default/config/sync/user.role.collectionneur.yml @@ -8,6 +8,7 @@ weight: -8 is_admin: null permissions: - 'access any corpus_documents workflow_transion overview' + - 'administer url aliases' - 'create corpus_documents workflow_transition' - 'create enregistrement content' - 'create generique workflow_transition' @@ -15,9 +16,11 @@ permissions: - 'create terms in genres' - 'create terms in langues' - 'create terms in locuteurs' + - 'create url aliases' - 'delete own enregistrement content' - 'edit any enregistrement content' - 'edit own enregistrement content' + - 'notify of path changes' - 'revert enregistrement revisions' - 'schedule corpus_documents workflow_transition' - 'use text format wysiwyg' diff --git a/sites/default/config/sync/views.view.content.yml b/sites/default/config/sync/views.view.content.yml index cb32ec51b..de582515b 100644 --- a/sites/default/config/sync/views.view.content.yml +++ b/sites/default/config/sync/views.view.content.yml @@ -44,6 +44,7 @@ dependencies: - text - translation_views - user + - views_bulk_operations - workflow _core: default_config_hash: YIwhIF9MSP1E_HMam6MrYeti_UqMXQiLDMjDsPFKK8s @@ -990,7 +991,7 @@ display: path: admin/content/production menu: type: tab - title: Content + title: Productions description: '' expanded: false parent: 'menu_link_content:8b5fed48-c008-4041-9bda-06f997582175' @@ -1296,6 +1297,91 @@ display: groups: 1: AND fields: + views_bulk_operations_bulk_form: + id: views_bulk_operations_bulk_form + table: views + field: views_bulk_operations_bulk_form + relationship: none + group_type: group + admin_label: '' + label: 'Views bulk operations' + 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 + batch: true + batch_size: 10 + form_step: true + buttons: false + clear_on_exposed: false + action_title: Action + selected_actions: + domain_access_none_action: 0 + domain_access_remove_action: 0 + domain_access_all_action: 0 + domain_access_add_action: 0 + node_promote_action: 0 + node_unpromote_action: 0 + node_unpublish_by_keyword_action: 0 + node_assign_owner_action: 0 + node_publish_action: 0 + node_unpublish_action: 0 + node_make_unsticky_action: 0 + node_save_action: node_save_action + node_make_sticky_action: 0 + views_bulk_edit: 0 + views_bulk_operations_delete_entity: 0 + workflow_node_given_state_action: workflow_node_given_state_action + workflow_node_next_state_action: 0 + pathauto_update_alias: pathauto_update_alias + 'entity:delete_action:node': 0 + 'entity:unpublish_action:node': 0 + 'entity:publish_action:node': 0 + 'entity:save_action:node': 0 + preconfiguration: + node_save_action: + label_override: '' + workflow_node_given_state_action: + label_override: '' + pathauto_update_alias: + label_override: '' + plugin_id: views_bulk_operations_bulk_form field_visuel: id: field_visuel table: node__field_visuel @@ -1690,6 +1776,59 @@ display: separator: ', ' field_api_classes: false plugin_id: field + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + label: 'Lien vers Content' + 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 + text: voir + output_url_as_text: true + absolute: true + entity_type: node + plugin_id: entity_link term_node_tid: id: term_node_tid table: node_field_data @@ -1994,16 +2133,17 @@ display: field_visuel: field_visuel field_page_type: field_page_type title: title - field_view_mode: field_view_mode field_workflow_generic: field_workflow_generic + field_view_mode: field_view_mode operations: title - translation_status: translation_status field_son: title + view_node: title term_node_tid: term_node_tid name: name - changed: changed - status: status field_afficher_en_page_d_acceuil: field_afficher_en_page_d_acceuil + translation_status: translation_status + status: status + changed: changed info: field_visuel: sortable: false @@ -2026,14 +2166,14 @@ display: separator: '
' empty_column: false responsive: '' - field_view_mode: + field_workflow_generic: sortable: false default_sort_order: asc align: '' separator: '' empty_column: false responsive: '' - field_workflow_generic: + field_view_mode: sortable: false default_sort_order: asc align: '' @@ -2045,14 +2185,14 @@ display: separator: '' empty_column: false responsive: '' - translation_status: - sortable: false - default_sort_order: asc + field_son: align: '' separator: '' empty_column: false responsive: '' - field_son: + view_node: + sortable: false + default_sort_order: asc align: '' separator: '' empty_column: false @@ -2069,20 +2209,6 @@ display: separator: '' empty_column: false responsive: priority-low - changed: - sortable: true - default_sort_order: desc - align: '' - separator: '' - empty_column: false - responsive: priority-low - status: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' field_afficher_en_page_d_acceuil: sortable: false default_sort_order: asc @@ -2090,6 +2216,27 @@ display: separator: '' empty_column: false responsive: '' + translation_status: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + status: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: priority-low default: changed empty_table: true row: @@ -2108,7 +2255,7 @@ display: - user - 'user.node_grants:view' - user.roles - max-age: -1 + max-age: 0 tags: - 'config:field.storage.node.field_afficher_en_page_d_acceuil' - 'config:field.storage.node.field_page_type' @@ -2557,6 +2704,91 @@ display: 2: AND title: Collection fields: + views_bulk_operations_bulk_form: + id: views_bulk_operations_bulk_form + table: views + field: views_bulk_operations_bulk_form + relationship: none + group_type: group + admin_label: '' + label: 'Views bulk operations' + 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 + batch: true + batch_size: 10 + form_step: true + buttons: false + clear_on_exposed: true + action_title: Action + selected_actions: + domain_access_none_action: 0 + domain_access_remove_action: 0 + domain_access_all_action: 0 + domain_access_add_action: 0 + node_promote_action: 0 + node_unpromote_action: 0 + node_unpublish_by_keyword_action: 0 + node_assign_owner_action: 0 + node_publish_action: 0 + node_unpublish_action: 0 + node_make_unsticky_action: 0 + node_save_action: node_save_action + node_make_sticky_action: 0 + views_bulk_edit: 0 + views_bulk_operations_delete_entity: 0 + workflow_node_given_state_action: workflow_node_given_state_action + workflow_node_next_state_action: 0 + pathauto_update_alias: pathauto_update_alias + 'entity:delete_action:node': 0 + 'entity:unpublish_action:node': 0 + 'entity:publish_action:node': 0 + 'entity:save_action:node': 0 + preconfiguration: + node_save_action: + label_override: '' + workflow_node_given_state_action: + label_override: '' + pathauto_update_alias: + label_override: '' + plugin_id: views_bulk_operations_bulk_form status: id: status table: node_field_data @@ -2874,6 +3106,59 @@ display: separator: ', ' field_api_classes: false plugin_id: field + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + label: 'Lien vers Content' + 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 + text: voir + output_url_as_text: true + absolute: true + entity_type: node + plugin_id: entity_link field_nbr_locuteurs: id: field_nbr_locuteurs table: node__field_nbr_locuteurs @@ -3489,8 +3774,8 @@ display: title: title field_workflow: field_workflow operations: title - translation_status: translation_status field_son: title + view_node: title field_nbr_locuteurs: field_nbr_locuteurs field_description: field_description body: body @@ -3498,6 +3783,7 @@ display: field_genres: field_genres field_langues: field_langues name: name + translation_status: translation_status changed: changed field_collectionneurs: field_collectionneurs field_locuteurs: field_locuteurs @@ -3528,14 +3814,14 @@ display: separator: '' empty_column: false responsive: '' - translation_status: - sortable: false - default_sort_order: asc + field_son: align: '' separator: '' empty_column: false responsive: '' - field_son: + view_node: + sortable: false + default_sort_order: asc align: '' separator: '' empty_column: false @@ -3583,6 +3869,13 @@ display: separator: '' empty_column: false responsive: priority-low + translation_status: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' changed: sortable: true default_sort_order: desc @@ -3618,7 +3911,7 @@ display: - user - 'user.node_grants:view' - user.roles - max-age: -1 + max-age: 0 tags: - 'config:field.storage.node.body' - 'config:field.storage.node.field_collectionneurs' diff --git a/sites/default/config/sync/views.view.redirect.yml b/sites/default/config/sync/views.view.redirect.yml index aa861bf8a..0ee49b2e2 100644 --- a/sites/default/config/sync/views.view.redirect.yml +++ b/sites/default/config/sync/views.view.redirect.yml @@ -430,7 +430,7 @@ display: exposed: true expose: operator_id: status_code_op - label: 'Status code' + label: 'Code du statut' description: '' use_operator: false operator: status_code_op @@ -444,7 +444,7 @@ display: administrator: '0' is_grouped: true group_info: - label: 'Status code' + label: 'Code du statut' description: '' identifier: status_code optional: true diff --git a/sites/default/config/sync/views.view.workflow_entity_history.yml b/sites/default/config/sync/views.view.workflow_entity_history.yml index 8b0de46a8..19f36e204 100644 --- a/sites/default/config/sync/views.view.workflow_entity_history.yml +++ b/sites/default/config/sync/views.view.workflow_entity_history.yml @@ -340,7 +340,7 @@ display: relationship: none group_type: group admin_label: '' - label: 'From state' + label: 'Depuis l''état' exclude: false alter: alter_text: false