Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Pathauto and configure a title-based alias. #148

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"drupal/islandora": "^2.8.1",
"drupal/matomo": "^1.19",
"drupal/openseadragon": "^2",
"drupal/pathauto": "^1.12",
"drupal/pdf": "^1.1",
"drupal/rest_oai_pmh": "^2.0@beta",
"drupal/search_api_solr": "^4.2",
Expand Down
72 changes: 70 additions & 2 deletions composer.lock

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

1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ module:
views_field_view: 0
views_nested_details: 0
views_ui: 0
pathauto: 1
content_translation: 10
views: 10
minimal: 1000
Expand Down
22 changes: 22 additions & 0 deletions config/sync/pathauto.pattern.repository_items.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: fcfd7e6c-74c8-4f8d-83c0-79b75d55feee
langcode: en
status: true
dependencies:
module:
- node
id: repository_items
label: 'Repository Items'
type: 'canonical_entities:node'
pattern: 'islandora/[node:title]'
selection_criteria:
edf28a5a-6fa6-4c20-a64d-d63582ccc3d5:
id: 'entity_bundle:node'
negate: false
uuid: edf28a5a-6fa6-4c20-a64d-d63582ccc3d5
context_mapping:
node: node
bundles:
islandora_object: islandora_object
selection_logic: and
weight: -5
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 @@
_core:
default_config_hash: SwvLp8snyPEExF41CaJJYdPUVomofLqtXvwciHc4cPg
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
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: 6a3405b3-540b-4a77-b5b3-e6079c65c17a
langcode: en
status: true
dependencies:
module:
- pathauto
enforced:
module:
- node
_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: 07895083-7110-4cce-ad00-962cf1027351
langcode: en
status: true
dependencies:
module:
- pathauto
enforced:
module:
- user
_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: { }
Loading