Pathauto
官方网址:https://www.drupal.org/project/pathauto
Pathauto 模块可自动生成各种内容(节点、分类术语、用户)的 URL/路径 别名,而无需用户手动指定路径别名。
这允许您有网址别名,如/category/my-node-title,而不是/node/123。
别名基于使用管理员可以更改的令牌的"模式"系统。
Drupal8 要求:Token 和 CTools
Drupal7 要求:Token
推荐模块
- Redirect (D7, D8)
- when installed Pathauto will provide a new "Update Action" in case your URLs change. This is the recommended update action and is considered the best practice for SEO and usability.
- 安装后,Pathauto将提供一个新的“更新操作”,以防URL发生更改。 这是推荐的更新操作,被认为是搜索引擎优化和可用性的最佳实践。
- Global Redirect (D7)
- ensures that your content is only visiable at the one, best URL possible (i.e. requests for node/2 are forwarded to "alias-for-node-2"). This is part of Redirect in D8.
- 确保您的内容只能在一个尽可能好的URL上可见(即,对node/2的请求被转发到“alias-for-node-2”)。这是D8中重定向的一部分。
- Pathologic
- (untested, but may help with updating outdated links in existing content)
- (未经测试,但可能有助于更新现有内容中过时的链接)
- Sub-pathauto (D7)
- provides a way to use one alias for multiple URLs as long as the so that "node/1" is aliased to "about-my-site" then you can use "about-my-site/edit" to access "node/1/edit". Neat!
- 提供一种对多个URL使用一个别名的方法,只要将“node/1”别名为“about my site”,则可以使用“about my site/edit”访问“node/1/edit”。干净利落!
- Transliteration (D7)
- is useful if your site is likely contain characters beyond ASCII 128 and you want them transliterated into ASCII 128. In Drupal 8, Pathauto uses the API provided by Drupal core.
- 如果您的站点可能包含超过ascii128的字符,并且您希望将其音译为ascii128,则此选项非常有用。在Drupal8中,Pathauto使用DrupalCore提供的API。
下载
8.x-1.8 发布于 2020 年 4 月 28 日
需要Drupal: ^8.8 ||^9
德鲁帕尔9兼容性和错误修复。需要德鲁帕尔 8.8,并在 8.x-1.7 中修复问题,以便从德鲁帕尔 8.7 进行更新。
⬇ Download tar.gz (72.51 KB) | zip (117.53 KB)
Install with Composer: $ composer require 'drupal/pathauto:^1.8'
7.x-1.3 发布于 2015 年 10 月 7 日
需要Drupal: 7.x
⬇ Download tar.gz (41.33 KB) | zip (46.96 KB)
Install with Composer: $ composer require 'drupal/pathauto:^1.3'
评论