From 57ea74f89b33865aa0338b896960d134f427f65b Mon Sep 17 00:00:00 2001
From: Lily Yan <lily.yan@uwaterloo.ca>
Date: Wed, 21 Oct 2020 14:01:02 -0400
Subject: [PATCH] ISTWCMS-4156 Moving all pathauto yml files from uw_sites_all
 to uw_cfg_common

---
 .../pathauto.pattern.uw_path_blog_post.yml    | 21 ++++++++
 .../pathauto.pattern.uw_path_blog_tags.yml    | 22 ++++++++
 ...uto.pattern.uw_path_catalog_categories.yml | 22 ++++++++
 .../pathauto.pattern.uw_path_catalogs.yml     | 22 ++++++++
 .../pathauto.pattern.uw_path_content.yml      | 13 +++++
 .../pathauto.pattern.uw_path_custom_block.yml | 13 +++++
 .../pathauto.pattern.uw_path_event.yml        | 21 ++++++++
 .../pathauto.pattern.uw_path_event_tags.yml   | 22 ++++++++
 .../pathauto.pattern.uw_path_event_types.yml  | 22 ++++++++
 ....pattern.uw_path_faculties_and_schools.yml | 22 ++++++++
 .../pathauto.pattern.uw_path_media.yml        | 13 +++++
 .../pathauto.pattern.uw_path_news_item.yml    | 21 ++++++++
 .../pathauto.pattern.uw_path_news_tags.yml    | 22 ++++++++
 .../pathauto.pattern.uw_path_sidebar.yml      | 21 ++++++++
 .../pathauto.pattern.uw_path_site_footer.yml  | 21 ++++++++
 ...pathauto.pattern.uw_path_taxonomy_term.yml | 13 +++++
 .../install/pathauto.pattern.uw_path_user.yml | 13 +++++
 config/install/pathauto.settings.yml          | 52 +++++++++++++++++++
 18 files changed, 376 insertions(+)
 create mode 100644 config/install/pathauto.pattern.uw_path_blog_post.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_blog_tags.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_catalog_categories.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_catalogs.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_content.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_custom_block.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_event.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_event_tags.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_event_types.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_faculties_and_schools.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_media.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_news_item.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_news_tags.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_sidebar.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_site_footer.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_taxonomy_term.yml
 create mode 100644 config/install/pathauto.pattern.uw_path_user.yml
 create mode 100644 config/install/pathauto.settings.yml

diff --git a/config/install/pathauto.pattern.uw_path_blog_post.yml b/config/install/pathauto.pattern.uw_path_blog_post.yml
new file mode 100644
index 00000000..a71df615
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_blog_post.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+id: uw_path_blog_post
+label: 'Blog post path pattern'
+type: 'canonical_entities:node'
+pattern: 'blog/[node:title]'
+selection_criteria:
+  6008045d-ac62-416d-a3f4-46c30aaab4d5:
+    id: node_type
+    bundles:
+      uw_ct_blog: uw_ct_blog
+    negate: false
+    context_mapping:
+      node: node
+    uuid: 6008045d-ac62-416d-a3f4-46c30aaab4d5
+selection_logic: and
+weight: -6
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_blog_tags.yml b/config/install/pathauto.pattern.uw_path_blog_tags.yml
new file mode 100644
index 00000000..7fab3fcf
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_blog_tags.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_blog_tags
+label: 'Blog tags path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'blog/tags/[term:name]'
+selection_criteria:
+  c3139779-798a-4754-957a-35fba9bd29e3:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_vocab_blog_tags: uw_vocab_blog_tags
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: c3139779-798a-4754-957a-35fba9bd29e3
+selection_logic: and
+weight: -1
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_catalog_categories.yml b/config/install/pathauto.pattern.uw_path_catalog_categories.yml
new file mode 100644
index 00000000..d36ca61f
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_catalog_categories.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_catalog_categories
+label: 'Catalog categories path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'catalogs/categories/[term:name]'
+selection_criteria:
+  f4c229ad-5155-4814-8d09-251af2ccf6ed:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_vocab_catalog_categories: uw_vocab_catalog_categories
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: f4c229ad-5155-4814-8d09-251af2ccf6ed
+selection_logic: and
+weight: 1
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_catalogs.yml b/config/install/pathauto.pattern.uw_path_catalogs.yml
new file mode 100644
index 00000000..7e618c64
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_catalogs.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_catalogs
+label: 'Catalogs path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'catalogs/[term:name]'
+selection_criteria:
+  d9203b0b-0816-4e91-b14a-db0e4c905d3e:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_vocab_catalogs: uw_vocab_catalogs
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: d9203b0b-0816-4e91-b14a-db0e4c905d3e
+selection_logic: and
+weight: 0
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_content.yml b/config/install/pathauto.pattern.uw_path_content.yml
new file mode 100644
index 00000000..117a5205
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_content.yml
@@ -0,0 +1,13 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+id: uw_path_content
+label: 'Content path pattern'
+type: 'canonical_entities:node'
+pattern: '[node:menu-link:parent:url:path]/[node:title]'
+selection_criteria: {  }
+selection_logic: and
+weight: -5
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_custom_block.yml b/config/install/pathauto.pattern.uw_path_custom_block.yml
new file mode 100644
index 00000000..5bc6d15a
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_custom_block.yml
@@ -0,0 +1,13 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - block_content
+id: uw_path_custom_block
+label: 'Custom block path pattern'
+type: 'canonical_entities:block_content'
+pattern: 'blocks/[block_content:info]'
+selection_criteria: {  }
+selection_logic: and
+weight: 5
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_event.yml b/config/install/pathauto.pattern.uw_path_event.yml
new file mode 100644
index 00000000..a16aa9f7
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_event.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+id: uw_path_event
+label: 'Event path pattern'
+type: 'canonical_entities:node'
+pattern: 'events/[node:title]'
+selection_criteria:
+  0f8d7153-46e2-4788-a25b-8a998481ed5d:
+    id: node_type
+    bundles:
+      uw_ct_event: uw_ct_event
+    negate: false
+    context_mapping:
+      node: node
+    uuid: 0f8d7153-46e2-4788-a25b-8a998481ed5d
+selection_logic: and
+weight: -7
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_event_tags.yml b/config/install/pathauto.pattern.uw_path_event_tags.yml
new file mode 100644
index 00000000..ad7b1676
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_event_tags.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_event_tags
+label: 'Event tags path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'events/tags/[term:name]'
+selection_criteria:
+  391bcba7-aaaf-48f2-9045-d6b4279e2c69:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_tax_event_tags: uw_tax_event_tags
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: 391bcba7-aaaf-48f2-9045-d6b4279e2c69
+selection_logic: and
+weight: -2
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_event_types.yml b/config/install/pathauto.pattern.uw_path_event_types.yml
new file mode 100644
index 00000000..a664fc03
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_event_types.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_event_types
+label: 'Event types path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'events/types/[term:name]'
+selection_criteria:
+  f991675b-525d-4fc0-878b-1d1746da5a97:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_tax_event_type: uw_tax_event_type
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: f991675b-525d-4fc0-878b-1d1746da5a97
+selection_logic: and
+weight: -3
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_faculties_and_schools.yml b/config/install/pathauto.pattern.uw_path_faculties_and_schools.yml
new file mode 100644
index 00000000..3bc6f89c
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_faculties_and_schools.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_faculties_and_schools
+label: 'Faculties and schools path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'catalogs/faculties-and-schools/[term:name]'
+selection_criteria:
+  e3bc433f-3689-4dee-aa47-50734405844c:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_vocab_faculties_and_schools: uw_vocab_faculties_and_schools
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: e3bc433f-3689-4dee-aa47-50734405844c
+selection_logic: and
+weight: 2
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_media.yml b/config/install/pathauto.pattern.uw_path_media.yml
new file mode 100644
index 00000000..202c5eaa
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_media.yml
@@ -0,0 +1,13 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - media
+id: uw_path_media
+label: 'Media path pattern'
+type: 'canonical_entities:media'
+pattern: 'media/[media:name]'
+selection_criteria: {  }
+selection_logic: and
+weight: 4
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_news_item.yml b/config/install/pathauto.pattern.uw_path_news_item.yml
new file mode 100644
index 00000000..94e00e16
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_news_item.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+id: uw_path_news_item
+label: 'News item path pattern'
+type: 'canonical_entities:node'
+pattern: 'news/[node:title]'
+selection_criteria:
+  92cc743b-f206-40a5-a6a9-4f67373876ad:
+    id: node_type
+    bundles:
+      uw_ct_news_item: uw_ct_news_item
+    negate: false
+    context_mapping:
+      node: node
+    uuid: 92cc743b-f206-40a5-a6a9-4f67373876ad
+selection_logic: and
+weight: -8
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_news_tags.yml b/config/install/pathauto.pattern.uw_path_news_tags.yml
new file mode 100644
index 00000000..2e192424
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_news_tags.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - ctools
+    - taxonomy
+id: uw_path_news_tags
+label: 'News tags path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: 'news/tags/[term:name]'
+selection_criteria:
+  2d47e618-a761-4634-b743-f6924f2b81bf:
+    id: 'entity_bundle:taxonomy_term'
+    bundles:
+      uw_vocab_news_tags: uw_vocab_news_tags
+    negate: false
+    context_mapping:
+      taxonomy_term: taxonomy_term
+    uuid: 2d47e618-a761-4634-b743-f6924f2b81bf
+selection_logic: and
+weight: -4
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_sidebar.yml b/config/install/pathauto.pattern.uw_path_sidebar.yml
new file mode 100644
index 00000000..8f1e2022
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_sidebar.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+id: uw_path_sidebar
+label: 'Sidebar path pattern'
+type: 'canonical_entities:node'
+pattern: 'sidebars/[node:title]'
+selection_criteria:
+  96550c84-2385-43f7-aa25-ca80528ddf91:
+    id: node_type
+    bundles:
+      uw_ct_sidebar: uw_ct_sidebar
+    negate: false
+    context_mapping:
+      node: node
+    uuid: 96550c84-2385-43f7-aa25-ca80528ddf91
+selection_logic: and
+weight: -9
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_site_footer.yml b/config/install/pathauto.pattern.uw_path_site_footer.yml
new file mode 100644
index 00000000..56c9953e
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_site_footer.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+id: uw_path_site_footer
+label: 'Site footer path pattern'
+type: 'canonical_entities:node'
+pattern: 'site-footer/[node:title]'
+selection_criteria:
+  1c4af52c-2d8a-420f-a820-a89df82759ef:
+    id: node_type
+    bundles:
+      uw_ct_site_footer: uw_ct_site_footer
+    negate: false
+    context_mapping:
+      node: node
+    uuid: 1c4af52c-2d8a-420f-a820-a89df82759ef
+selection_logic: and
+weight: -10
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_taxonomy_term.yml b/config/install/pathauto.pattern.uw_path_taxonomy_term.yml
new file mode 100644
index 00000000..1deb8354
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_taxonomy_term.yml
@@ -0,0 +1,13 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - taxonomy
+id: uw_path_taxonomy_term
+label: 'Taxonomy term path pattern'
+type: 'canonical_entities:taxonomy_term'
+pattern: '[term:vocabulary]/[term:name]'
+selection_criteria: {  }
+selection_logic: and
+weight: 3
+relationships: {  }
diff --git a/config/install/pathauto.pattern.uw_path_user.yml b/config/install/pathauto.pattern.uw_path_user.yml
new file mode 100644
index 00000000..4054a28c
--- /dev/null
+++ b/config/install/pathauto.pattern.uw_path_user.yml
@@ -0,0 +1,13 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+id: uw_path_user
+label: 'User path pattern'
+type: 'canonical_entities:user'
+pattern: 'users/[user:account-name]'
+selection_criteria: {  }
+selection_logic: and
+weight: 6
+relationships: {  }
diff --git a/config/install/pathauto.settings.yml b/config/install/pathauto.settings.yml
new file mode 100644
index 00000000..6d7bc226
--- /dev/null
+++ b/config/install/pathauto.settings.yml
@@ -0,0 +1,52 @@
+enabled_entity_types:
+  - block_content
+  - user
+punctuation:
+  double_quotes: 0
+  quotes: 0
+  backtick: 0
+  comma: 0
+  period: 0
+  hyphen: 1
+  underscore: 0
+  colon: 0
+  semicolon: 0
+  pipe: 0
+  left_curly: 0
+  left_square: 0
+  right_curly: 0
+  right_square: 0
+  plus: 0
+  equal: 0
+  asterisk: 0
+  ampersand: 0
+  percent: 0
+  caret: 0
+  dollar: 0
+  hash: 0
+  at: 0
+  exclamation: 0
+  tilde: 0
+  left_parenthesis: 0
+  right_parenthesis: 0
+  question_mark: 0
+  less_than: 0
+  greater_than: 0
+  slash: 0
+  back_slash: 0
+verbose: false
+separator: '-'
+max_length: 255
+max_component_length: 60
+transliterate: true
+reduce_ascii: true
+case: true
+ignore_words: 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with, le, la, l, les, un, une, des, du, de'
+update_action: 2
+safe_tokens:
+  - alias
+  - path
+  - join-path
+  - login-url
+  - url
+  - url-brief
-- 
GitLab