From 6a977d6c811f15dc4a42ae2df57a6683f90b0ea5 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 29 Jun 2021 11:49:24 +0200 Subject: [PATCH] path_auto patterns --- config/sync/pathauto.pattern.actus.yml | 22 ++ config/sync/pathauto.pattern.collections.yml | 22 ++ config/sync/pathauto.pattern.equipes.yml | 23 ++ config/sync/pathauto.pattern.events.yml | 22 ++ config/sync/pathauto.pattern.programmes.yml | 22 ++ config/sync/pathauto.pattern.projets.yml | 22 ++ config/sync/pathauto.pattern.ressources.yml | 22 ++ config/sync/pathauto.pattern.static.yml | 22 ++ config/sync/pathauto.pattern.themes.yml | 22 ++ config/sync/pathauto.pattern.villes.yml | 23 ++ config/sync/views.view.programme_toc.yml | 303 +++++++++++++++++++ 11 files changed, 525 insertions(+) create mode 100644 config/sync/pathauto.pattern.actus.yml create mode 100644 config/sync/pathauto.pattern.collections.yml create mode 100644 config/sync/pathauto.pattern.equipes.yml create mode 100644 config/sync/pathauto.pattern.events.yml create mode 100644 config/sync/pathauto.pattern.programmes.yml create mode 100644 config/sync/pathauto.pattern.projets.yml create mode 100644 config/sync/pathauto.pattern.ressources.yml create mode 100644 config/sync/pathauto.pattern.static.yml create mode 100644 config/sync/pathauto.pattern.themes.yml create mode 100644 config/sync/pathauto.pattern.villes.yml diff --git a/config/sync/pathauto.pattern.actus.yml b/config/sync/pathauto.pattern.actus.yml new file mode 100644 index 00000000..ef8ec466 --- /dev/null +++ b/config/sync/pathauto.pattern.actus.yml @@ -0,0 +1,22 @@ +uuid: 239aaae0-d1c5-4db5-9489-d138d336e5c8 +langcode: fr +status: true +dependencies: + module: + - node +id: actus +label: Actus +type: 'canonical_entities:node' +pattern: 'actualite/[node:title]' +selection_criteria: + c4ce3a75-84d0-47ca-b951-56dff1374b74: + id: node_type + bundles: + actualite: actualite + negate: false + context_mapping: + node: node + uuid: c4ce3a75-84d0-47ca-b951-56dff1374b74 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.collections.yml b/config/sync/pathauto.pattern.collections.yml new file mode 100644 index 00000000..3c16e828 --- /dev/null +++ b/config/sync/pathauto.pattern.collections.yml @@ -0,0 +1,22 @@ +uuid: e7d8e17c-4e00-4824-894f-ca271246d4d6 +langcode: fr +status: true +dependencies: + module: + - node +id: collections +label: Collections +type: 'canonical_entities:node' +pattern: 'collection/[node:title]' +selection_criteria: + 552be6b5-aae3-4bbf-a988-e435ba967205: + id: node_type + bundles: + collection: collection + negate: false + context_mapping: + node: node + uuid: 552be6b5-aae3-4bbf-a988-e435ba967205 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.equipes.yml b/config/sync/pathauto.pattern.equipes.yml new file mode 100644 index 00000000..e363d717 --- /dev/null +++ b/config/sync/pathauto.pattern.equipes.yml @@ -0,0 +1,23 @@ +uuid: 2d4f5d8d-8978-478f-bb6d-32f9bac2968f +langcode: fr +status: true +dependencies: + module: + - ctools + - taxonomy +id: equipes +label: Equipes +type: 'canonical_entities:taxonomy_term' +pattern: 'equipe/[term:name]' +selection_criteria: + 159d5dbb-d750-4eaa-8e15-622500a14dfb: + id: 'entity_bundle:taxonomy_term' + bundles: + equipes: equipes + negate: false + context_mapping: + taxonomy_term: taxonomy_term + uuid: 159d5dbb-d750-4eaa-8e15-622500a14dfb +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.events.yml b/config/sync/pathauto.pattern.events.yml new file mode 100644 index 00000000..54c8e3fd --- /dev/null +++ b/config/sync/pathauto.pattern.events.yml @@ -0,0 +1,22 @@ +uuid: 584d242e-63f8-4a2e-8d1b-bcbf1430782d +langcode: fr +status: true +dependencies: + module: + - node +id: events +label: Events +type: 'canonical_entities:node' +pattern: 'evenement/[node:title]' +selection_criteria: + b54bd1e2-665b-41f5-85db-fb94fd8e4cd8: + id: node_type + bundles: + evenement: evenement + negate: false + context_mapping: + node: node + uuid: b54bd1e2-665b-41f5-85db-fb94fd8e4cd8 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.programmes.yml b/config/sync/pathauto.pattern.programmes.yml new file mode 100644 index 00000000..8305818b --- /dev/null +++ b/config/sync/pathauto.pattern.programmes.yml @@ -0,0 +1,22 @@ +uuid: c0dc88be-449d-4ea9-9111-6b882a149c89 +langcode: fr +status: true +dependencies: + module: + - node +id: programmes +label: Programmes +type: 'canonical_entities:node' +pattern: 'programme/[node:title]' +selection_criteria: + 0d4e18f8-03dc-4648-8350-9cf896e2d2a6: + id: node_type + bundles: + programme: programme + negate: false + context_mapping: + node: node + uuid: 0d4e18f8-03dc-4648-8350-9cf896e2d2a6 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.projets.yml b/config/sync/pathauto.pattern.projets.yml new file mode 100644 index 00000000..c2eeac17 --- /dev/null +++ b/config/sync/pathauto.pattern.projets.yml @@ -0,0 +1,22 @@ +uuid: 3cf2cbd2-4c3f-4d63-a921-10804e86636d +langcode: fr +status: true +dependencies: + module: + - node +id: projets +label: Projets +type: 'canonical_entities:node' +pattern: 'projet/[node:title]' +selection_criteria: + f6c99817-1439-4169-897e-79179fc7403b: + id: node_type + bundles: + projet: projet + negate: false + context_mapping: + node: node + uuid: f6c99817-1439-4169-897e-79179fc7403b +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.ressources.yml b/config/sync/pathauto.pattern.ressources.yml new file mode 100644 index 00000000..d8461c8e --- /dev/null +++ b/config/sync/pathauto.pattern.ressources.yml @@ -0,0 +1,22 @@ +uuid: 4c202677-e582-4da4-9b9f-852f63718c8e +langcode: fr +status: true +dependencies: + module: + - node +id: ressources +label: Ressources +type: 'canonical_entities:node' +pattern: 'ressource/[node:title]' +selection_criteria: + eb7c634d-7952-41e7-8d95-b83c26b3e1f3: + id: node_type + bundles: + ressource: ressource + negate: false + context_mapping: + node: node + uuid: eb7c634d-7952-41e7-8d95-b83c26b3e1f3 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.static.yml b/config/sync/pathauto.pattern.static.yml new file mode 100644 index 00000000..1860c6ee --- /dev/null +++ b/config/sync/pathauto.pattern.static.yml @@ -0,0 +1,22 @@ +uuid: fe656d40-2381-42e6-8060-0c49758d9a16 +langcode: fr +status: true +dependencies: + module: + - node +id: static +label: Static +type: 'canonical_entities:node' +pattern: '[node:title]' +selection_criteria: + 6656a141-75db-4226-be69-b4611e909af3: + id: node_type + bundles: + static: static + negate: false + context_mapping: + node: node + uuid: 6656a141-75db-4226-be69-b4611e909af3 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.themes.yml b/config/sync/pathauto.pattern.themes.yml new file mode 100644 index 00000000..135455cc --- /dev/null +++ b/config/sync/pathauto.pattern.themes.yml @@ -0,0 +1,22 @@ +uuid: 112c4a39-c5db-4177-9ea5-779b9ccb794b +langcode: fr +status: true +dependencies: + module: + - node +id: themes +label: Themes +type: 'canonical_entities:node' +pattern: 'theme/[node:title]' +selection_criteria: + d9172412-a0bf-4780-a0dd-4a114696f3b0: + id: node_type + bundles: + theme: theme + negate: false + context_mapping: + node: node + uuid: d9172412-a0bf-4780-a0dd-4a114696f3b0 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.villes.yml b/config/sync/pathauto.pattern.villes.yml new file mode 100644 index 00000000..8b957c16 --- /dev/null +++ b/config/sync/pathauto.pattern.villes.yml @@ -0,0 +1,23 @@ +uuid: 3b5dfcae-2f9f-4d97-ae0f-99d9ab9b3e93 +langcode: fr +status: true +dependencies: + module: + - ctools + - taxonomy +id: villes +label: Villes +type: 'canonical_entities:taxonomy_term' +pattern: 'ville/[term:name]' +selection_criteria: + caff705c-666e-4a03-bfb6-22cb3b5db3f9: + id: 'entity_bundle:taxonomy_term' + bundles: + villes: villes + negate: false + context_mapping: + taxonomy_term: taxonomy_term + uuid: caff705c-666e-4a03-bfb6-22cb3b5db3f9 +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/views.view.programme_toc.yml b/config/sync/views.view.programme_toc.yml index c6cfa07c..91f47cba 100644 --- a/config/sync/views.view.programme_toc.yml +++ b/config/sync/views.view.programme_toc.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - core.entity_view_mode.node.teaser + - field.storage.node.field_themes_lies - field.storage.node.field_ville - node.type.actualite - node.type.evenement @@ -59,8 +60,21 @@ display: offset: 0 style: type: default + options: + grouping: + - + field: field_ville + rendered: true + rendered_strip: false + row_class: '' + default_row_class: true row: type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: true fields: title: id: title @@ -925,3 +939,292 @@ display: - user.permissions tags: - 'config:field.storage.node.field_ville' + block_6: + display_plugin: block + id: block_6 + display_title: 'Prog TOC villes->projets/themes Block NOT WORKING' + position: 1 + display_options: + display_extenders: + views_ef_fieldset: { } + block_category: 'Prog TOC (Views)' + display_description: '' + title: 'Programme TOC Villes' + defaults: + title: false + header: false + filters: false + filter_groups: false + fields: false + header: + result: + id: result + table: views + field: result + relationship: none + group_type: group + admin_label: '' + empty: false + content: '@total Villes' + plugin_id: result + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + group: 1 + type: + id: type + table: node_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: + projet: projet + 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: { } + entity_type: node + entity_field: type + plugin_id: bundle + filter_groups: + operator: AND + groups: + 1: AND + fields: + field_ville: + id: field_ville + table: node__field_ville + field: field_ville + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: true + 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: true + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + 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 + plugin_id: field + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: Projet + exclude: false + alter: + alter_text: true + text: '{{ field_ville }}' + 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: true + 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 + plugin_id: field + field_themes_lies: + id: field_themes_lies + table: node__field_themes_lies + field: field_themes_lies + relationship: none + group_type: group + admin_label: '' + label: Thème + 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: span + 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: true + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: false + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_themes_lies' + - 'config:field.storage.node.field_ville'