Drupal 8架站實用模組 - pathauto

Submitted by saladlam on

功用

可設定規則,按照node或taxonomy等的屬性,自動生成有意思的URI。例如http://example.com/article/YYYY-MM-DD/Article-title。

注意事項

  1. 文章已生成URI並發佈後,請別再改URI。若果再次生成另一個,其他人就不能用舊的URI進入那篇文章。建議出文時,先"Save as unpubished",再檢查生成URI,然後再發佈。
  2. 在"Configuration > Search and metadata > URL aliases > Settings"裏,請不要選"Transliterate prior to creating alias"。若果選了,所有在URI的中文字會全部轉做國語拼音的英文字,例如"我是香港人"會變成"woshixianggangren"。也建議選"",以免影響到已經生成的URI。
  3. 文章標題的token是"[node:title]",而不是"[current-page:title]"。"[current-page:*]"以及"[current-date:*]"的token不是給pathauto用。

下載連結

https://www.drupal.org/project/pathauto

Add new comment

The content of this field is kept private and will not be shown publicly.

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
Enter the characters shown in the image.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.