如何在 Drupal 中强制使用仅 ASCII 的 url?
在带有 PathAuto 的 Drupal 7 网站中:
在 pathAuto 设置中,我有类似“[term:vocabulary]/[term:name]”的内容作为许多类别中的模式,但因为词汇、分类等名称不是英文的,所以我有包含非 ASCII 字符的 url。这还不错,但在 IE 中很难看(比如 Portal/%CE%B5%CE%BC%CE%B2%CE
等。
我可以使用机器名称而不是名称或词汇,但我想要更好的东西。
在 WordPress 中,有一些插件可以清理 url,我正在使用它们来用 ascii 字符替换非 ascii 字符(例如希腊语中的 α -> a、π -> p 等等)
我怎么能在 Drupal 中出现这样的行为呢?
in a Drupal 7 with PathAuto website:
In pathAuto settings I have something like "[term:vocabulary]/[term:name]" as a pattern in many categories, but because the vocabulary, taxonomy, etc names are not in English I have urls that contain non ascii characters. This is not bad but in IE is ugly (something like Portal/%CE%B5%CE%BC%CE%B2%CE
etc.
I could use the machine name instead of the name or vocabulary, but I want something better.
In wordpress there are plugins that sanitize the url and I am using them in order to replace non ascii with ascii characters (eg α -> a, π -> p in greek, and so on)
How can I have such behavior in Drupal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是 音译 模块。
该模块由 PathAuto 模块支持。
The solution is the Transliteration module.
The module is supported by the PathAuto module.