Skip to content

Commit

Permalink
Merge pull request #143 from itk-dev/feature/LOOP-989-pathuto
Browse files Browse the repository at this point in the history
LOOP-989: Added pathauto and configuration
  • Loading branch information
martinyde authored Jul 9, 2021
2 parents 4cfcff5 + 5d41f0a commit 963b1c8
Show file tree
Hide file tree
Showing 11 changed files with 293 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"drupal/openid_connect": "^1.0",
"drupal/openid_connect_windows_aad": "^1.3",
"drupal/paragraphs": "^1.12",
"drupal/pathauto": "^1.8",
"drupal/samlauth": "~3.2.0",
"drupal/search_api": "^1.19",
"drupal/search_api_autocomplete": "^1.4",
Expand Down
163 changes: 162 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module:
config_translation: 0
convert_media_tags_to_markup: 0
csv_serialization: 0
ctools: 0
date_popup: 0
datetime: 0
dblog: 0
Expand Down Expand Up @@ -64,6 +65,7 @@ module:
os2loop_user: 0
os2loop_user_login: 0
page_cache: 0
path: 0
path_alias: 0
rest: 0
samlauth: 0
Expand All @@ -90,6 +92,7 @@ module:
views_flag_refresh: 0
viewsreference: 0
xls_serialization: 0
pathauto: 1
externalauth: 10
paragraphs: 11
better_formats: 100
Expand Down
13 changes: 13 additions & 0 deletions config/sync/language.content_settings.path_alias.path_alias.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 6dbee42d-9869-4498-b480-a746a3c980e0
langcode: en
status: true
dependencies:
module:
- path_alias
_core:
default_config_hash: dhjFABRzm52DkRXnYja5ZoHwjY0R3gEGic3KpDUXgRo
id: path_alias.path_alias
target_entity_type_id: path_alias
target_bundle: path_alias
default_langcode: und
language_alterable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: 'Opdatér alternativ URL'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: 'Opdatér alternativ URL'
14 changes: 14 additions & 0 deletions config/sync/pathauto.pattern.os2loop_content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: a8605d54-b9a8-43a3-9aa8-28c7785ecede
langcode: en
status: true
dependencies:
module:
- node
id: os2loop_content
label: Content
type: 'canonical_entities:node'
pattern: '[node:title]'
selection_criteria: { }
selection_logic: and
weight: 0
relationships: { }
14 changes: 14 additions & 0 deletions config/sync/pathauto.pattern.os2loop_taxonomy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: 42224c94-542a-489c-b4df-ec566642b125
langcode: en
status: true
dependencies:
module:
- taxonomy
id: os2loop_taxonomy
label: Taxonomy
type: 'canonical_entities:taxonomy_term'
pattern: '[term:vocabulary]/[term:name]'
selection_criteria: { }
selection_logic: and
weight: 0
relationships: { }
52 changes: 52 additions & 0 deletions config/sync/pathauto.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
enabled_entity_types: { }
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: 100
max_component_length: 100
transliterate: true
reduce_ascii: false
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'
update_action: 2
safe_tokens:
- alias
- path
- join-path
- login-url
- url
- url-brief
_core:
default_config_hash: SwvLp8snyPEExF41CaJJYdPUVomofLqtXvwciHc4cPg
16 changes: 16 additions & 0 deletions config/sync/system.action.pathauto_update_alias_node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: 6baca1c6-79e1-4df9-9d9b-8b52e757e2db
langcode: en
status: true
dependencies:
enforced:
module:
- node
module:
- pathauto
_core:
default_config_hash: lno8QThS348UX-kaUsagJtCnuPHKLXYnTQiF_9HSDWA
id: pathauto_update_alias_node
label: 'Update URL alias'
type: node
plugin: pathauto_update_alias
configuration: { }
16 changes: 16 additions & 0 deletions config/sync/system.action.pathauto_update_alias_user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: 2bca450c-4941-48b0-a493-0c8f83ed2f1b
langcode: en
status: true
dependencies:
enforced:
module:
- user
module:
- pathauto
_core:
default_config_hash: x_ok_ZsfA4Xk4B_hVW3O4-3PcNoK57nXLz_Dlletidg
id: pathauto_update_alias_user
label: 'Update URL alias'
type: user
plugin: pathauto_update_alias
configuration: { }

0 comments on commit 963b1c8

Please sign in to comment.